ESODecoded

DoesItemHaveDurability

ESO Lua API function — used by 31 of the 3,030 addons we indexed (combined 3,885,662 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

DoesItemHaveDurability([Bag|#Bag] bagId, integer slotIndex)

Returns: bool hasDurability

Real usage — from AlphaGear 2 (Builds, Gear, Skills, Banking)

    for _,c in pairs(SLOTS) do
        if DoesItemHaveDurability(BAG_WORN,c[1]) then
            con = GetItemCondition(BAG_WORN,c[1])

Short excerpt from the shipping addon AlphaGear 2 (Builds, Gear, Skills, Banking)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

AddonTotal downloads
AlphaGear 2 (Builds, Gear, Skills, Banking)848,683
WPamA (What Pledges at my Alts)735,283
PersonalAssistant (Banking, Consume, Junk, Loot, Repair, Worker) [Masteroshi430's branch]487,232
Wizard's Wardrobe481,038
Info Panel368,274
Bandits Gear Manager306,643