Wowwee MIP V2 icon Wowwee MIP V2 — UART interface to hack WowWee MIP with ESP32/ESP32‑Cam or EZ‑B v4 for ARC; hardware UART preferred, configurable power and baud 9600/115200 Try it →
 

Lists

Several values kept together in order, and the blocks that make, read and search lists. The first item in a list is number 1.

Where to find it: the Lists category of the toolbox, in any script editor set to Blockly or on Top bar → Workspaces → Blockly


Blocks

The Lists category of the toolbox
The Lists category of the toolbox
Block What it does
list 1, 2, 3 A list of the items typed here, separated by commas.
String List Creates a list of text items joined together.
Length of list … How many items are in the list.
Item # … of list … The item at this position in the list.
List … contains … True when the item is in the list.
Join list … with … Make one piece of text from every item in the list, with the separator between them.
Split text … at … Break text into a list wherever the separator appears.

Details

list 1, 2, 3

The list 1, 2, 3 block
The list 1, 2, 3 block

A list of the items typed here, separated by commas. Numbers stay numbers and anything else becomes text. For bytes, type numbers such as 0x7E, 1, 255.

In JavaScript: this block gives back the value of

[1, 2, 3]

String List

The String List block
The String List block

Creates a list of text items joined together. Similar to Join Text but uses a list-building approach — add as many string items as you need.

When to use it: Use this to build a comma-separated list of options or items as a single text value.

Example: String List ["yes", "no", "maybe"] → creates the text "yesnomaybe" (or with separators if you add them).

Tips:

  • Click the gear icon to add or remove items.
  • Add separator text (like ", " or " | ") between items if needed.
  • Useful when building option lists or constructing messages from multiple parts.

In JavaScript: this block gives back the value of

"", ""

Length of list …

The Length of list … block
The Length of list … block

How many items are in the list.

In JavaScript: this block gives back the value of

["a", "b", "c"].length

Item # … of list …

The Item # … of list … block
The Item # … of list … block

The item at this position in the list. The first item is number 1. Reading past the end gives undefined.

In JavaScript: this block gives back the value of

["a", "b", "c"][(1) - 1]

List … contains …

The List … contains … block
The List … contains … block

True when the item is in the list.

In JavaScript: this block gives back the value of

["a", "b", "c"].indexOf('a') !== -1

Join list … with …

The Join list … with … block
The Join list … with … block

Make one piece of text from every item in the list, with the separator between them.

In JavaScript: this block gives back the value of

["a", "b", "c"].join(', ')

Split text … at …

The Split text … at … block
The Split text … at … block

Break text into a list wherever the separator appears.

In JavaScript: this block gives back the value of

String('a,b,c').split(',')