ESODecoded

GetItemCondition

ESO Lua API function — used by 51 of the 3,030 addons we indexed (combined 11,857,308 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

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

Returns: integer condition

Real usage — from LibFilters-3.0

        if TEXT_SEARCH_MANAGER:IsDataInSearchTextResults("storeTextSearch", BACKGROUND_LIST_FILTER_TARGET_BAG_SLOT, bagId, slotIndex) then
            local condition = GetItemCondition(bagId, slotIndex)
            if condition < 100 and n

Short excerpt from the shipping addon LibFilters-3.0its 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
Master Merchant 3.03,883,523
LibFilters-3.02,063,617
Auto Category - Revised1,180,586
Auto Recharge (and repair)1,014,626
AlphaGear 2 (Builds, Gear, Skills, Banking)848,683
PersonalAssistant (Banking, Consume, Junk, Loot, Repair, Worker) [Masteroshi430's branch]487,232