BER Programming Language - Tables

Tables are collections of values that you can access by index.

Creating a Table

table names is ["Bernardo", "Ana", "Luca"]

This creates a table called names with three strings inside.

Accessing Table Items

board:(names(1))  /c prints "Bernardo" e\
board:(names(2))  /c prints "Ana" e\

Use parentheses to get the value at a specific position (1-based).

Changing Table Values

names(3) is "Maria"
board:(names(3))  /c now prints "Maria" e\

You can assign a new value to a table index.

Tip: Tables are 1-indexed — the first item is at position 1, not 0.