Skip to main content

While Loop

Logic & LoopscontainerLow risk

Keep repeating steps as long as a condition is met

Inputs

NameTypeRequiredDefaultDescription
Loop Type
loopType
enumOptionalcondition
conditionfixedCount
Left Value
leftOperand
expressionOptional
Shown when loopType = condition
Operator
operator
enumOptional!=
==!=><>=<=
Shown when loopType = condition
Right Value
rightOperand
expressionOptional
Shown when loopType = condition
Custom Condition
customExpression
expressionOptional
Shown when loopType = condition
Number of Iterations
iterationCount
numberOptional10
Shown when loopType = fixedCount
Index Variable
indexVariable
variableOptionalindex
Maximum Iterations (safety limit)
maxIterations
numberOptional1000

Output

$indexVariableNumber

Current iteration number (starts at 0)

Compatibility

WindowsLinuxAttendedUnattended

Related activities