XenoGuard Documentation

While

Actions » Programming » Flow Control » While 

The While action repeats all actions embedded in the inner node as long as the While condition is fullfilled, i.e. logically returns True.
.

[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. In the Flow Control node, select the While action.

Parameters: 

The action has the following input parameters:


NAME DESCRIPTION
Left Expression item The initial action, parameter, or value to be compared.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Result, Enum]
Operator
The operation to be used when comparing the expressions.

Allowed Context Scope
 [Fixed]
Right Expression Item
Another action, parameter, or value to be compared.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Result, Enum]

Warning An infinite loop will occur when the specified condition does not result in a false value.
[-] Hide

Here are the operators that can be used to compare the expressions:

  • State - can either be "Passed" or "Failed"
  • Contains  
  • Contains Not  
  • Contains RegEx  
  • Contains Not RegEx  
  • ==
  • !=
  • == RegEx
  • != RegEx
  • >
  • >=
  • <
  • <=
  • Item Count >
  • Item Count >=
  • Item Count <
  • Item Count <=

Example 1 (Displays iterated number values):

This example loops the values of a local variable named numValue with Number as data type. When the loop stops, a Text is then output via Message Box.


Example 2 (Plays a beep in a loop):

This example runs a continuously beeping sound and compares the values of two local variables named Temp Reading and Temp Limit with Floating Point as data type. When the loop stops, a Text is then output via Message Box. 


See other flow control actions:

If
For Loop
For Each
Break
Label
GoTo
Parallel
On Error Continue
On Error GoTo
Abort
Abort on Error