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.bubbleComparison operators
| Syntax | Meaning |
|---|---|
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.bubbleStep size
Add by N to change the step size.
example.bubbleCounting down
Use down to to iterate in reverse.
example.bubbleNested loops
Loops can be nested to any depth.
example.bubble