Skip to main content

Get item

Read the item at a position.

Command in the List toolkit · id ooa.list/get_item · 4 inputs (2 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
ListListYesSource list.
PositionNumberYesZero-based position; negative counts from the end (-1 = last).
If out of rangeStringNoerrorWhen the position is outside the list: fail with LIST.INDEX, or return the default.
DefaultAnyNoValue returned for a position outside the list when if_out_of_range is default.

Outputs​

OutputTypeWhat it is
itemAnyThe item.