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.

Note  A For Loop with a conditional terminal executes until the conditional terminal receives the stop value or until the set number of iterations completes, whichever happens first.

Complete the following steps to change the continuation behavior of a loop with a conditional terminal.

  1. Right-click the conditional terminal. In a While Loop or a Timed Loop, you also can right-click the loop border.
  2. 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.