CourseLab CourseLab 3.5. User's Guide Previous topic Next topic

WHILE

WHILE action allows to execute dependent actions while action condition is met.

Parameters

Condition
Condition is a logical expression by JavaScript syntax rules. Expression can contain CourseLab variable (#var_name, where var_name - variable name) or Object's property ($OBJ_ID.property, where OBJ_ID - Object ID and property - existing Object's property) or expressions. While the result of expression is true true, dependent actions will repeat.
Check
Condition can be evaluated before or after the execution (to allow WHILE {} or DO {} WHILE cycle).
Limitation
Since this action, if improperly configured, may run into endless cycle, there is the "fuse" - break after specified number of executions. BREAK action also can be used to break the cycle.