Loop Operation

This topic provides you with information about the Loop operation.

This page discusses:

See Also
Defining Functions and Methods

Accessing this Operation

This operation can be accessed by clicking Loop .

Describing this Operation

This operation is designed to enable you to define sequences of operations that are executed a given number of times (For i=1 to N).

Notes:
  • The number of iterations can be driven by rules and formulas. Therefore, the loop operates its suboperations a given number of times, depending on the context, if some conditions are met.
  • The objects generated by the operations at each iteration can be stored in the output list of the loop using the AddToList operation. It is a way for the expert user to store and retrieve the results of the previous iterations.
  • Loops of loops cannot be created: A loop operation cannot be instantiated under a loop. Other limitations: The operations contained in the loop cannot be structured using Sequential combinations.
  • The operations located below the loop cannot be in auto update mode. Only Driven and Single update modes are available in their properties pages.
  • Loops inputs can be linked except the iteration.
  • You can use the Loop operation in combination with the AddToList operation to stack each iteration result up in a list. To do so, use a list external to the Loop. The output list of the loop is emptied at each iteration, so it only keeps the last iteration values.

More Information about this Operation



Note that:
  • The NumberOfIterations variable matches the number of iterations you defined.
  • The list variable can be the output of the operation.
  • The Iteration is an internal parameter incremented at each iteration during the execution of the loop. It cannot be driven by the expert but can be used as the input of a formula, check, link... It is the current iteration number.

Using this Operation Interface

Name Name attributed to the operation.
Comment Comment attributed to the operation.
Loop definition Number of iterations Enter the number of iterations. This number matches the number of times the loop and its operations are executed.
Current iteration Internal variable. Indicates the number of iterations performed.
Create new data at each execution New data are created at each execution of the operation.