List.PositionOf
List.PositionOf(list as list, value as any, optional occurrence as nullable number, optional equationCriteria as any) as any
Returnerer forskyvningen der verdien value
vises i listen list
. Returnerer -1 hvis verdien ikke vises. En valgfri forekomstparameter occurrence
kan angis.
-
occurrence
: Maksimalt antall forekomster som skal rapporteres.
Finn plasseringen i listen {1, 2, 3} der verdien 3 vises.
Bruk
List.PositionOf({1, 2, 3}, 3)
Utdata
2