Lists
Last updated
Last updated
You can create a list of variable lengths with the blocks below
Creates an empty list
Allows you to specify what items in what order you want in your list
Creates a list of a given item repeated a specified number of times.
This block lets you create a list from text and even lets you set delimiters i.e. ","
You can also use this block to make text from a list with a given delimiter
If you are importing a list from a Spreadsheet or other data source, it may be helpful to sort it in your app. You can sort a list alphabetically or numerically, ascending or descending
The following blocks analyze a list in different ways
Returns the length of a list.
Checks if a list is empty. Returns true or false.
Returns the position of the first or last occurrence of an item, where the index of the first item is 1. Returns 0 if the item is not in the list.
Returns a sub-list of items between two positions in a longer list.
Checks if a given list contains a given item. Returns true or false.
Returns the result of the chosen operation on a list of numbers. Returns NaN if the operation cannot be performed on the given list of values.
Items in a list have an index number, the first item is 1, second is 2 and so on. Not only can you select
an item from a list by number from the front
but also from the back
, the first
, the last
and also a random
item. You can but remove
it after you have selected it
You can change an item in your list with the blocks below
This block will either insert an item at the specified location, or set the item at the specified location to the new value.
Removes the item at the specified position from a list
Get a copy of a list with the items shuffled in a random order.