Tag Link | [Array->FindPosition] | Category | Array |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 8.0 |
Change | Unchanged | Data Source | Any |
Output Type | None | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0 |
[Array->FindPosition] searches the array for the parameter and returns an array of positions for those elements which match. Accepts a single parameter of any data type including matchers.
If the array contains any pair values, only the first part of the pair is compared with the parameter of the [Array->FindPosition] tag.
If no elements in the array match the parameter to the [Array->FindPosition] tag then an empty array is returned.
[Array->(FindPosition: 'Find Value')]
Required Parameters | |
---|---|
Matcher | Any value or matcher. Each element of the array will be compared to this value or matcher and the matching positions will be returned. |
This tag was formerly called [Array->FindIndex].
See the Lasso 8 Language Guide for examples of how to use this tag.