Loop Behavior: Data Sheet  

Accessing this behavior This behavior can be accessed by clicking the Loop Behavior icon () in the Structure toolbar.
Describing this behavior This behavior is designed to enable you to define sequences of behaviors that will be executed a given number of times (For i=1 to N).

Note that:

  • The number of iterations can be driven by rules and formulas. Therefore, the loop will operate its sub-behaviors a given number of times, depending on the context, if some conditions are met.
  • The objects generated by the behaviors at each iteration can be stored in the output list of the loop with the AddToList behavior. 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 behavior cannot be instantiated under an existing loop. Other limitations: The behaviors contained in the loop cannot be structured using the Logical and Sequential combinations.
  • The behaviors 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.
  • It is recommended to use the Loop behavior in combination with the AddToList behavior: The outputs of the loop will be stored in the AddToList and the list will be valuated.
More Information Note that:
  • The NumberOfIterations variable matches the number of iterations you defined.
  • The AlwaysRegenerate variable means that if the loop already executed once, the items that it created will be removed and recreated at the next operation.
  • The list variable can be the output of the behavior.
  • The Iteration is an internal parameter that will be 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 Behavior Interface

Name Name attributed to the behavior.
Comment Comment attributed to the behavior.
Loop definition Number of iterations Enter the number of iterations. This number matches the number of times the loop and its behaviors will be 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 behavior.
Using this behavior See Using the Loop Behavior.