Lists & collections
Store many values under one name — carts, tags, wishlists.
When you need to store many values — a shopping cart, selected tags, a wishlist — use a list. Lists are managed with the List / collection block.
Operations
| Operation | Effect |
|---|---|
append / prepend | Add a value to the end / start |
remove | Remove a value |
clear | Empty the list |
length → variable | Count items |
get (by index) → variable | Read one item |
join → variable | Join into a string (custom separator) |
contains → variable | true / false if the value is present |
Reading a list into a message
A list isn’t plain text, so to show it, join it into a variable first:
List cart join → cart_text (separator ", ")
Send "Your cart: {{var.cart_text}}"
Building buttons from a list
Pair a list with a Dynamic keyboard to render one button per item automatically — perfect for menus, catalogs and pickers.