Item

Synopsis
This keyword can be used in a parameter of any array function. Item references the value of the array element on which the function is currently operating. This keyword is useful when each value of the array has to be modified in the same manner, or when evaluating a condition against the value of each element.
Returns
Returned types: Numeric array; Boolean array; String array; Object array; Point array.
Examples
1.

The following example returns an array of the areas of all blobs found.

{SELECT(BlobAnalysis.BlobFound, Item.Area)}
2.

The following example returns an array where each element represents the difference between each element in the source array and the previous element in the source array. The array that is returned can be referred to as the difference array. Since the first element in the source array has no previous element, it is ignored when calculating the difference array (therefore the StartIndex parameter of the SELECT function is set to 2 instead of 1).

SELECT (Flowchart.MyArray, 2, ItemCount - 1, Item.Y - Flowchart.MyArray(Index - 1).Y)