German English

OTX-ForLoopIcon
ForLoop

For the run-loop, until the counter has reached the final value.

Classification

Library Core
Art CompoundNode
Categories Loops, Core Activities, Activities, Sequencer

Description

The OTX ForLoop activity contains a sequence of activities that are performed repeatedly until theZählervariable the End­wert has achieved. It is useful to iterate through arrays and sequential processing.

When Star­ten First, all the expressions of the loop start and end value is calculated. Thereafter, the counter variable is set to the starting value.

Before each iteration the counter variable is compared with the final value. the counter variable exceeds the end value, the loop ends, otherwise the iteration is executed. The loop is then executed as long as the value of the counter variable is less than the final value equal.

After each iterationEven after the last, the counter variable is increased by the value 1. This applies even if the current iteration by a ContinueActivity is terminated. Only at the end of the slip by BreakActivity will not increase the value of the counter variable.

The Zählervariable can be used for any calculations within and outside the loop.

The loop is about the activitiesBreak,Return orThrow be terminated. TheContinueActivity stops the current iteration and continue with the next iteration, without leaving the loop.

Properties

Listed below are all properties of the activity are listed.
NameTypeArtMInRDescription
NameStringValueInName of Activity title
DescriptionStringValueInDescription (specification) of the activity
EnabledBooleanValueInActivity is enabled or not
CounterIntegerVariableI / OThe loop counter variable
StartIntegerTermInStarting value of the loop
EndIntegerTermInFinal value of the loop
Legend: No Type = Indeterminate type, see description; M = Property is required (mandatory); In = Verkettbares Element; R = Datenrichtung I = In, O = Out, I/O = In/Out; italic: Standardeigenschaften

See also

  • Created
    17. January 2011
  • Version
    76
  • Amended
    12. February 2011
  • Hits
    950