Skip to main content

Find Index of Item in Array by Value

Overview

Searches an array for a given item value and returns it's position or -1 if not found

Returns
Number

Parameters

ParameterParameterValid BlocksRequired
Use Dynamic NameShow the Dynamic Name slot in the tree so that it can be set dynamicallyBoolean Block GroupNo
Dynamic NameThe dynamic name of this itemText Block GroupNo
AttributesMetadata values for this block. Used in XML and multipart/form-data.Text Block GroupNo
Array to searchThe array to searchData Structure Block GroupNo
Value to FindThe value to find in the arrayAny Data Type Block GroupNo