Skip to main content

List

Returns a list made up of the inputs in top down order.

List block

Description

The List block returns a list made up of the inputs in top down order. This is a code block part of the Lists drawer.

Usage

Use List to create a collection of elements that can be stored, accessed, and manipulated as a single unit. Lists are fundamental for storing multiple values, creating arrays of data, or organizing related information together.

Syntax

Input:

  • Click + to add a new item and - to remove an item
  • Input a data element for each slot

Example

Example Code

List block example code 1List block example code 2

Notes

  • Elements are ordered from top to bottom as they appear in the block
  • Can contain mixed data types (numbers, strings, booleans, etc.)
  • The + and - buttons dynamically adjust the number of input slots
  • Lists can be stored in variables for later use