getIndex
Lookup index of an item in an array/collection.
Lookup index of an item in an array/collection.
| Property | Type | Description |
|---|---|---|
| collection | String | Variable to fetch the collection from. |
| item | Builder | Item that should be looked up (using equality). |
| toVar | String | Integer variable to store the index, or -1 if the item is not found. |
item
| Inline definition |
|---|
| Verbatim value. |
| Property | Type | Description |
|---|---|---|
| fromVar | String | Fetch value from session variable. |
| value | String | Verbatim value. |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.