WoW API: IsEquippableItem

Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API IsEquippableItem to API IsEquippableItem without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < IsEquippableItem

Returns 1 if item is an equip-able one at all, your character notwithstanding, or nil if not.

result = IsEquippableItem(itemId or "itemName" or "itemLink")

ParametersEdit

ArgumentsEdit

(itemId or "itemName" or "itemLink")
itemId
Integer - The numeric ID of the item. ie. 12345
itemName
String - The Name of the Item, e.g. "Heavy Silk Bandage"
itemLink
String - The itemLink, when Shift-Clicking items.

ReturnsEdit

result
1 if equip-able, nil otherwise.

ExampleEdit

/dump IsEquippableItem("Template:Loot")
1
/dump IsEquippableItem("Template:Loot")
1
/dump IsEquippableItem("Template:Loot")
nil