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 nShort excerpt from the shipping addon LibFilters-3.0 — 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
| Addon | Total downloads |
|---|---|
| Master Merchant 3.0 | 3,883,523 |
| LibFilters-3.0 | 2,063,617 |
| Auto Category - Revised | 1,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 |