List.PositionOf

Syntax

List.PositionOf(list as list, value as any, optional occurrence as nullable number, optional equationCriteria as any) as any

About

Returns the offset at which the value value appears in the list list. Returns -1 if the value doesn't appear. An optional occurrence parameter occurrence can be specified.

  • occurrence: The maximum number of occurrences to report.

Example 1

Find the position in the list {1, 2, 3} at which the value 3 appears.

Usage

List.PositionOf({1, 2, 3}, 3)

Output

2

Equation criteria