Edit In List Block

Edit List Blocks

These all apply to the insert at option aswell.

Set In List Block

The set in list block sets the item in the list with the specified index to the specified value.

Generated Code

var list;

list[index] = <value>;

Set In List From End Block

The set in list from end block sets the item in the list with the specified index from the end to the specified value.

Generated Code

var list;

list[list.length - <index>] = <value>;

Set First In List Block

The set first in list block sets the first item in the list to the specified value.

Generated Code

var list;

list[0] = <value>;

Set Last In List Block

The set last in list block sets the last item in the list to the specified value.

Generated Code

var list;

list[list.length - 1] = <value>;

Last updated