if IsInGroup(LE_PARTY_CATEGORY_INSTANCE) then -- in an instance group elseif IsInGroup() then -- in a normal group end