Loop Objects
- Last UpdatedNov 03, 2021
- 2 minute read
You can insert a loop object into the respective procedure sequence.
Use loop objects to re-run unit procedures, operations, or phases that are built inside the object. Any procedure object, including other loops, can be placed inside a loop structure.
Insert objects within the loop by positioning the cursor on the top portion of the object and follow the normal insertion directions described earlier. The bottom portion of the loop object contains a transition object that you must define with the Expression Editor. The result of the evaluation of the expression determines whether the objects contained within the loop are re-run or not. If the expression is True, loop processing returns to the top of the loop. If the expression is False, processing proceeds below the loop.
To insert a loop object
-
In the Recipe Editor dialog box click the Unit Procedure, Operation, or Phase to which you want to add a branch.
-
Click the Add Loop
icon for the Unit Procedure, Operation, or Phase that you selected in step 1.
The loop is added to the procedure.
-
Double-click the lower portion (transition) of the loop object.
The Transition Properties dialog box appears.
For more information on using the Transition Properties dialog box, see "Inserting Transition Objects".
-
Define the transition using a unique Label (8 characters maximum), Name (16 characters maximum), an optional Description (120 characters maximum), and an Expression.
By default, all new loop objects are assigned an automatically-defined Label (numeric value). Also, a default name is defined which is the same as the label. You can edit these as required.
For more information on building expressions, see "Expression Editor".
Note: You cannot add a loop around an existing operation or phase. However, you can drag and drop existing objects into a loop object.