Array Element Selector vTool#
The data type of the Element output pin will be the same as the data type input at the Array input pin.
仕組み#
Three selection modes are available:
- First Element: Selects the element with index number 0.
- Last Element: Selects the element with the highest index number.
- Index: Selects the element with the specified index number. The allowed range is [0,n-1].
You can either use the Index parameter to specify the desired position in the array or connect the output pin of another vTool that outputs data of unsigned Integer type to the Index pin of the Array Element Selector. If you connect the Index pin, the selection mode is automatically set to Index. To change the selection mode again, remove that connection.
Be aware that if the array you're inputting doesn't include the index number you have specified, no element will be selected and output.
入力#
Array#
Accepts arrays containing any simple data type.
- Data type: Array
Index#
Accepts unsigned integer values from other vTools.
- データタイプ:整数
出力#
Element#
Returns the value of the array element selected according to the mode specified.
- Data type: Same as the data type input at the Array input pin.