3.3.1.4 Control Flow

Command Description
break

Exit from a loop, a script, or a progress dialog box.

continue

Skip to the next iteration of the current loop.

document -e (-ef)

Loop to execute a script that affects every object of the specified kind (-ef => the active Project Explorer folder).

exit

Exit from Origin.

for

Loop for repeated operation.

if (else)

Test a condition and branch accordingly.

layer -o

Execute a script for the specified layer.

loop

Loop while incrementing a variable.

repeat

Execute the same script multiple times.

return

Return a value from a script and exit the script.

switch

Test an expression against a series of constant values and branch accordingly.

win -o

Execute a script for the specified window.