WoW:API UnitIsUnit: Difference between revisions
Jump to navigation
Jump to search
UnitIsUnit
mNo edit summary |
mNo edit summary |
||
Line 28: | Line 28: | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Functions|UnitIsUnit]] | |||
[[Category:API Unit Functions|UnitIsUnit]] |
Revision as of 13:24, 27 August 2005
Returns true if the two specified units are the same, false otherwise.
- Arguments
- (String unit1, String unit2)
- unit1
- The first unit to query (e.g. "party1", "pet", "player")
- unit2
- The second unit to compare it to (e.g. "target")
- Returns
- Boolean unitIsUnit
- unitIsUnit
- True if the two units are the same, false otherwise.
- Example
if ( UnitIsUnit("party1", "target") ) then TargetUnit("party1pet"); else TargetUnit("party1"); end;