List Index¶
Functionality¶
This node searches items in given data and returns their indexes. It’s equivalent to list.index method in Python.
Category¶
List -> List main -> List Index
Inputs¶
data - where to search items
Item - what to search in data
In use range mode:
Start index - index from which to start searching (inclusive)
End index - index where to finish searching (exclusive)
Outputs¶
Index - An index of an item in data. If there is no such item -1 value will be returned.
Options¶
Level - Level of data where to search items. With level 2 it will search in nested list of main one.
Use range - It adds two extra sockets for specifying a range where to search items in given data.
Examples¶
Finding index of maximum value in array of random values
Number-> Random Num Gen
List->List Main-> List Math
List->List Main-> List Index
List->List Struct-> List Item
Text-> Stethoscope
Finding several indices:
“-1” - Not found
Number-> Number Range
Number-> List Input
Text-> Stethoscope