Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Returns true if an item of a given type is equipped.

isEquipped = IsEquippedItemType(type)

Arguments

type
string (ItemType) - any valid inventory type, item class, or item subclass

Returns

isEquipped
boolean - is an item of the given type equipped

Example

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.

Advertisement