Until Statement

The until() statement evaluates an expression to determine when it should continue to execute a script. This is primarily used to wait for another process to complete before continuing. A timeout value is specified in seconds to allow execution to continue after the timeout has elapsed.

The following example illustrates how to use an until statement:

# set up a variable to use in the expression

$script.ready = false

$timeout = 300

# wait for the variable to become true

until ($script.ready, $timeout)

Flow Control