WoW:API IsInGroup: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(no need to use the function twice in if/else statement; removed notes)
(Correct the summary that mentioned only a raid group)
Line 4: Line 4:
   isGroup = IsInGroup()  
   isGroup = IsInGroup()  


Determines if the player is in a raid type group.
Determines whether the player is in a party or a raid group


== Returns ==
== Returns ==
:;isGroup: true if the player is in a some kind of group, otherwise false
:;isGroup: true if the player is in any kind of group, otherwise false


== Example ==
== Example ==

Revision as of 19:08, 29 October 2012

WoW API < IsInGroup

Added in Template:Mists-inline 5.0.4

 isGroup = IsInGroup() 

Determines whether the player is in a party or a raid group

Returns

isGroup
true if the player is in any kind of group, otherwise false

Example

 if IsInGroup() then
     DEFAULT_CHAT_FRAME:AddMessage ("I am in some kind of Group.");
 else
     DEFAULT_CHAT_FRAME:AddMessage ("I am not in any kind of Group.");
 end

Patch history

Template:Mists-inline <span style="" title="Patch 5.0.4">Patch 5.0.4</span> (patch date::28-August-2012): Added for status help due to removed GetNumRaidMembers and GetNumPartyMembers.