Skip to main content

Find item

Return the zero-based position of the first (or last) item equal to a value.

Command in the List toolkit · id ooa.list/index_of · 4 inputs (2 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
ListListYesSource list.
ValueAnyYesValue to look for.
Ignore caseBooleanNofalseCompare text without regard to upper/lower case.
LastBooleanNofalseReturn the last matching position instead of the first.

Outputs​

OutputTypeWhat it is
indexNumberZero-based position, or -1 when the value is not in the list.
foundBooleanTrue when the value is in the list.