AreUnitsEqual
ESO Lua API function — used by 81 of the 3,030 addons we indexed (combined 35,524,957 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
AreUnitsEqual(string unitTag, string secondUnitTag)Returns: bool areEqual
Real usage — from LibCombat
if unitTag and zo_strsub(unitTag, 1, 5) == "group" and AreUnitsEqual(unitTag, "player") then
returnShort excerpt from the shipping addon LibCombat — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Bandits User Interface | 6,130,317 |
| AUI - Advanced UI | 5,406,091 |
| LibCombat | 5,017,654 |
| Code's Combat Alerts | 4,445,158 |
| HodorReflexes - DPS & ULT tracker | 3,446,840 |
| RaidNotifier Updated | 2,789,746 |