Lists Codeblocks Reference

What's New: 2027

List codeblocks are used to create and manipulate lists of values, for example numbers or strings.

Note: Using codeblocks, the first item in a list is at position number 1.

Create List

The create list codeblock is used to create a collection of items.

Items in a list may be of any type; examples include strings, numbers, booleans, or variables, or even other lists.

Items with the same value can appear in the list multiple times.

Create List With

The create list with codeblock is used to create a collection, containing multiple copies of an item.

The item to be copied can be of any datatype. The repeat input must be a whole number.

Length of List

The length of list codeblock returns a number, corresponding to the number of items in the list.

Is Empty List

The is empty list codeblock returns 'True' if the input list is empty. Any other input (including a non-list) returns 'False'.

The input must be a list.

In List

The 'in list' codeblock searches a list for an item. Items can be number, string, boolean, or variable.

If the item is found, the position of the input in the list is returned as a number. The first position in the list is '1'.

If the item is not found in the list '0' is returned.

Find item in list has two options:

Get and Remove from List

The get and remove codeblock is used to get items from a list, or remove items from a list.

Note: when the 'remove' option is selected, the connector on the left of the codeblock is removed.

The get and remove codeblock has two controls, with the following options:

Set and Insert in List

The set and insert in list codeblock is used to add and replace items in a list.

The set and insert codeblock has two controls, with the following options:

Get Sublist

The get sublist codeblock is used to get a concurrent sublist of items from a list.

The get sublist codeblock has two position controls, with the following options;

Make List From

The make list from codeblock is used to convert delimited text into a list, or make a list into delimited text.

The delimiter can be a space, comma, or semicolon.

The make list from codeblock has two options:

Sort List

The sort list codeblock returns an ordered copy of a list.

The sort list codeblock has two functions: