At

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

Input

Field Definition Type Required
list A list of items. List of Objects FALSE
item Position of the specified item. In a list, items are always positioned as follows:
  • First item is always located at index 0.

  • Second item is at index 1.

  • Third item is at index 2; and so on.

Object FALSE

Output

Field Definition Type
item Item based on the specified position in the list.

Both the specified item and the list must be of the same type.

Object

Example

  • 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.

Related topics

About lists

Functions in Workflows

About the elements of Okta Workflows