Contents
← WoW API < IsEquippedItemType
Determines if an item of a given type is equipped.
isEquipped = IsEquippedItemType("type")
Arguments[edit | edit source]
- ("type")
- type
- String (ItemType) - any valid inventory type, item class, or item subclass
Returns[edit | edit source]
- isEqupped
- Boolean - is an item of the given type equipped
Example[edit | edit source]
if IsEquippedItemType("Shields") then DEFAULT_CHAT_FRAME:AddMessage("I have a shield") end
Result
Outputs "I have a shield" to the default chat window if the player has a shield equipped.
Community content is available under CC-BY-SA unless otherwise noted.