--- title: "@ListSet" ---
This is generated from the built in components of Otter 2025.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Functions within your Otter instance to see exactly what operations are available.

Updates the value at a given position in the list to a new value.

Script usage:

@ListSet(List, Index, Item)

Parameters:

NameDescription
ListThe list to update
IndexThe 0-based index to set. If negative, counts from the end of the list. If positive and larger than the list, grows the list as necessary.
ItemThe new value