Handbook · Reference · Blockly · Loops
Blockly: Loops
Where in the UI. Scripts tab toolbox.
Repeat, while, for, for-each, plus item-ref list length helpers.
| Block id | Read as | Purpose |
|---|---|---|
controls_repeat_ext | repeat ext | Repeat n times. |
controls_whileUntil | whileUntil | While / until loop. |
controls_for | for | Count from A to B by step. |
controls_forEach | forEach | For each item in a list. |
containd_item_ref_list_length | item ref list length | Array length for child/sibling/graph/placeholder/root item id lists |
containd_item_ref_list_last_index | item ref list last index | Last valid index (length − 1) for controls_for: from 0, to this value, by 1. Returns 0 when list is empty. |
containd_item_id_at_index_in_ref_list | item id at index in ref list | Read one id from a tree/graph item id list (also accepts legacy ItemRef[]). Plug into ContaindData “… on item”. |