Usage:
declare int i; set i = 10; do { print (i, "\n"); set i = i - 1; } until (i == 5);
10 9 8 7 6
declare int i; for (i = 0 to 10 step 2) { print (i); if (i < 10) { print (" "); } } print ("\n");
0 2 4 6 8 10
declare list my_list; set my_list = {1, 2, 3}; foreach element (my_list) { print (element, "\n"); } print ("\n");
1 2 3
foreach element ({1, 2, 3, 5, 7, 11, 13, 17, 19}) { print (element, "\n"); } print ("\n");
1 2 3 5 7 11 13 17 19
declare list my_list; set my_list = {1, {2, 3}, {4, 5, 6}, {7, {8, {9, 10}}}, 11, 12}; foreach element (my_list) { print (element, "\n"); }
1 {2, 3} {4, 5, 6} {7, {8, {9, 10}}} 11 12
declare int i; set i = 10; while (i >= 5) { print (i, "\n"); set i = i - 1; }
10 9 8 7 6 5
Copyright © 2025, 2026 Robert James Bruce.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at https://www.gnu.org/licenses/fdl-1.3.html