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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| List | List | Yes | Source list. | |
| Value | Any | Yes | Value to look for. | |
| Ignore case | Boolean | No | false | Compare text without regard to upper/lower case. |
| Last | Boolean | No | false | Return the last matching position instead of the first. |
Outputs
| Output | Type | What it is |
|---|---|---|
| index | Number | Zero-based position, or -1 when the value is not in the list. |
| found | Boolean | True when the value is in the list. |