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

The text of a loop element of type "REPEAT UNTIL" is supposed to contain a Boolean expression (a logical statement) representing the exit condition of the loop.
A REPEAT loop will repeatedly execute a sequence of instructions — called its body — until the exit condition becomes true. If the condition evaluates to false when entering the loop element then the loop body will still be executed at least once.

Please note:
The default text can be modified under Preferences › Structures.

This is how you add a REPEAT loop to your diagram:

1. Select the element where you want to insert  the REPEAT loop, then click on the REPEAT loop button in the toolbar (or select the respective menu item in the context menu or Diagram menu):

Select the REPEAT-Loop
 
2. Insert a Boolean expression as exit condition:

Edit the REPEAT-Loop 

3. Add instructions (or any other elements) to the loop body:

Add an instruction in the REPEAT-Loop

(Note the little red triangle in the loop element, which indicates that there is a related Analyser complaint in the bottom report list. These markers were introduced with version 3.30-14. The Analyser warning — and with it the red flag — will be gone as soon as the intended INPUT instruction for variable chosen will have been inserted.)

4. If you want more than one instruction executed as body then simply add the extra elements after or before the first one.

Add an instruction before the first in the REPEAT-Loop

We want to insert an additional instruction before the selected INPUT element, so we will keep the <Shift> key pressed while we click on the  respective element button in the toolbar...

5. If you want to add further instructions after (or before) the REPEAT loop you must first select the loop foot:

Add an instruction After the REPEAT-Loop

6. This is what the finished (and already saved) version looks like, now:

Completed REPEAT-Loop

You might test or debug it with the Executor now or export it as code etc.

Download Demo