Skip to main content

Set List Item

Command description

Replaces the item at a specified position. Positions are zero-based and may be negative; -1 refers to the last item.

Command Input Parameters

input parametersInput parameter typeDescription
ListlistList to modify
Item Positionint or strZero-based index of the item to replace. Negative indexes are supported.
Replacement ItemanyNew value for the item

Command Output Parameters

None.

AI Workflow Generation Notes

  • The command modifies the list in place. Item Position is zero-based, may be negative, and must be within the list bounds.