CIGAL Reference Manual, Chapter 2 (Commands): WHILE
usage: while(expression) {…}
The WHILE command is like the IF command in that the group of commands within the pair of brackets ('{' and '}') following the WHILE statement are executed only if the EXPRESSION results in a non-zero value. WHILE is different from IF, however, in that when the program reaches the '}' it jumps back to the WHILE statement.
Use WHILE loops within macro or menu command file, or use it interactively. If you enter a WHILE command at the keyboard, the command line interpreter will ask you to enter all commands within the loop before the WHILE begins execution.