Menu

bubblecode provides English-like conditional and looping constructs that read almost like pseudocode.

If / else if / else

The basic conditional uses if ... then ... end if. You can chain conditions with else if.

example.bubble

Comparison operators

SyntaxMeaning
is equal to / is==
is not equal to / is not!=
is greater than>
is less than<
is greater than or equal to>=
is less than or equal to<=

Repeat with (counting loop)

The repeat with loop iterates over a range of numbers.

example.bubble

Step size

Add by N to change the step size.

example.bubble

Counting down

Use down to to iterate in reverse.

example.bubble

Nested loops

Loops can be nested to any depth.

example.bubble