→ WoW API
Returns 1 if the specified party member exists, nil otherwise.
memberExists = GetPartyMember(index);
- Number - Which party member to query (1-4).
- Flag - If the specified party member exists, returns 1, otherwise nil.
memberCount = 0 for groupindex = 1,MAX_PARTY_MEMBERS do if (GetPartyMember(groupindex)) then memberCount = memberCount + 1 end end
Will count the number of members in the party (not the best way to do that but it's a reasonable example).
Community content is available under CC-BY-SA unless otherwise noted.