API IsConsumableItem

From Wowpedia
Jump to: navigation, search

Returns whether an item is consumed when used.

isConsumable = IsConsumableItem(itemID or itemLink or itemName)

Arguments

item 
Mixed - An item ID (number), item link or item name (string) to query

Returns

isConsumable 
Flag - 1 if the item is consumed when used, nil otherwise