S T R U C T O R I Z E R - User Guide
Elements > WHILE loop

A WHILE loop repeatedly executes a sequence of instructions — called its body — while a given Boolean condition holds. The logical condition is an entry condition i.e. it is tested each time before the body is going to be executed. If the condition expression is false on entering the loop element (the first time) then the loop body will not be executed at all.

The text to be filled in on adding a WHILE element is a Boolean expression, i.e. the logical condition. This may be a comparison, a variable with Boolean content, or several conditions combined by logical operators (see more details under IF statement). Please note:
The default text can be modified under Preferences › Structures.

This is how you add a WHILE-Loop to your diagram:

1. Select the WHILE-Loop in the menu:

Select the WHILE-Loop
2. Insert a condition (a Boolean expression):

Edit the WHILE-Loop 

3. Add instructions for the condition being true (can also be any other elements):

Add an instruction in the WHILE-Loop 

4. If you want more than one instruction executed the just add them after or before the first one:

 Add an instruction After the first in the WHILE-Loop

5. If you want to add further instructions after the entire WHILE-Loop you must select the head first:

 Add an instruction After the WHILE-Loop

6. This is what the finished version looks like:

 Completed WHILE-Loop

Download Demo