User Tools

Site Tools


jvs:cigal:manual:chapter2:while

CIGAL Reference Manual, Chapter 2 (Commands): WHILE

WHILE -- Execute a conditional loop of commands

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.

See Also:
BREAK(2), IF(2), NEXT(2), REPEAT(2)

CIGAL Home, CIGAL Manual, Commands List, Manual Help

jvs/cigal/manual/chapter2/while.txt · Last modified: 2023/02/23 18:43 (external edit)