Changing the Continuation Behavior of Loops
- Updated2025-01-22
- 2 minute(s) read
Changing the Continuation Behavior of Loops
If the conditional terminal of a
While Loop, a
For Loop, or a
(Real-Time, Windows)
Timed Loop
is
Stop if True, the loop executes its subdiagram until the conditional terminal receives a TRUE value. If the conditional terminal is
Continue if True
, the loop executes its subdiagram until the conditional terminal receives a FALSE value.
Complete the following steps to change the continuation behavior of a loop with a conditional terminal.
- Right-click the conditional terminal. In a While Loop or a Timed Loop, you also can right-click the loop border.
- Select Stop if True or Continue if True from the shortcut menu.
You also can use the Operating tool to click the conditional terminal to change the condition.
You must wire a Boolean value or an error cluster to the conditional terminal in a While Loop or a For Loop with a conditional terminal.