At

Returns the item at the specified position in a list, where the first item is in position 0.

Input Fields

  • list (list): a list of items

  • index (number): the position of the item you want to select. In a list, the first item is always located at index 0, the second at index 1, the third at index 2, and so on.

Output Fields

  • item: the item from the specified position of the list. Item needs to be the same type as list (i.e. if you have a list of numbers, then item should be set to be a number.)

Examples:

  • If list is ["one","two","three","four"] and index is 0, then item is "one"

  • If list is [1,2,3,4,5] and index is 2, then item is 3

See Also

About lists

Functions

About the elements of Okta Workflows