Skip to main content

List Set

Category: Lists List Set block screenshot

Replaces one existing element of a list variable. The `index` input is zero-based and must point to an element that already exists. This block does not insert a new element; it overwrites the current value at that position. An out-of-range index throws an error.

Inputs

InputRequiredValue KindTypesEnum Values
nameyesstringvariable-name
indexyesexpressionnumber
valueyesexpressionstring, number, boolean, reference, array

Notes

No additional notes are available yet.