Menu

Variables in bubblecode are created the moment you assign a value to them — no declarations needed. bubblecode supports two English-like assignment styles.

put … into

The most common pattern. Reads naturally as “put this value into that container.”

example.bubble

set … to

An alternative syntax that reads well for updates.

example.bubble

Both styles are interchangeable — use whichever reads better in context.

The add command

The add command increments a numeric variable in place.

example.bubble

String concatenation in assignment

Use & (join) and && (join with space) to build strings.

example.bubble

Variable naming

Variable names are case-insensitive single words. They can contain letters, digits, and underscores, but must start with a letter.

Valid names
1put 1 into counter
2put "ok" into myVar
3put 99 into score1