While Loop
- Updated2025-12-15
- 1 minute(s) read
A collection of statements that execute continuously for as long as the Repeat While expression evaluates to TRUE.
Configure the code that executes in the loop by dragging expressions and other primitives to the loop and configuring them as you would any other section of sequence code.
| Property/Section | Description |
|---|---|
| Repeat While | Specifies the expression to evaluate to determine if the loop continues to execute. The loop executes as long as this expression evaluates to TRUE. |
| Auto Yield | If TRUE, specifies that the loop automatically yields control of the CPU to the next task at the end of each iteration. |
| Description | Specifies a description for the current item. This text appears when you hover over the item in the Stimulus Profile Editor. |