ESODecoded

IsValidQuestIndex

ESO Lua API function — used by 34 of the 3,030 addons we indexed (combined 17,382,430 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

IsValidQuestIndex(luaindex journalQuestIndex)

Returns: bool isValid

Real usage — from LibQuestData

  for i = 1, GetNumJournalQuests() do
    if IsValidQuestIndex(i) then
      local name = GetJournalQuestName(i)

Short excerpt from the shipping addon LibQuestDataits 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
LibQuestData4,916,044
Potion Maker (for Alchemy Crafting)3,765,616
Quest Map3,746,568
ESO Master Recipe List2,130,985
Ravalox' Quest Tracker1,460,568
Votan's Improved Quests557,578