Control Structure - WHILE

Marks the beginning of a WHILE loop in your action list.

Action ID:
Action Category:
Action List Syntax:

204
Control Structure 
WHILE (<<CONDITION>>)

Settings

Condition:

The conditional expression that must resolve to true in order for the actions in the WHILE loop to be performed. The WHILE loop will continue to loop as long as this condition is true. Here's how it works:

If the expression evaluates to true, all of the actions between the WHILE action and the corresponding END WHILE action will be performed. When the END WHILE is reached, the expression will be reevaluated, and if it's still true, the actions between the WHILE and the END WHILE will be performed again. The actions will continue to "loop" like this until the expression evaluates to false.

When the expression evaluates to false, the next action after the corresponding END WHILE will be performed.

Build...

Opens the Build Expression dialog which provides a useful interface to help you build the conditional expression.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_EVALUATE_EXPRESSION

MSG_ERR_EVALUATE_EXPRESSION
MSG_ERR_EXPRESSION_MISSING_VALUE
<<POSITION>>
<<CONDITION>>

2

MSG_ERR_EVALUATE_EXPRESSION

MSG_ERR_EVALUATE_EXPRESSION
MSG_ERR_EXPRESSION_MISSING_PARENTHESIS
<<POSITION>>
<<CONDITION>>

80

MSG_ERR_EVALUATE_EXPRESSION

MSG_ERR_EVALUATE_EXPRESSION
MSG_ERR_EXPRESSION_MISSING_ENDLOOP
<<CONDITION>>

Examples

Moving a window (advanced)

Searching the desktop for text files

Verifying a password (advanced)