For Each Step
- Updated2025-07-21
- 1 minute(s) read
For Each Step
Use a For Each step to define a block of steps that execute once for each element in an array.
Configuring the Step
Use the ForEach Loop edit tab in the TestStand Sequence Editor and the Configure For Each Loop dialog box in a TestStand User Interface to configure the For Each step.
Step Properties
In addition to the common custom properties , the For Each step type defines the following step properties:
- Step.ArrayExpr —The expression that determines the array over which the loop iterates.
- Step.ArrayElementExpr —The expression that determines the variable into which to store the current element of the array during each iteration of the loop.
- Step.OffsetExpr —The expression that determines the variable into which to store the current offset of the array during each iteration of the loop.
- Step.SubscriptExpr —The expression that determines the variable into which to store the subscript of the current element in the array during each iteration of the loop.