Skip to content

Loops

Loops in Zephyr allow you to repeat actions.

Declare a Loop:

  • usage:

    <VariableName> # LOOP:<Conditional Object Name>;
    

  • Conditional Object: Controls the loop’s execution based on a boolean condition.

End a Loop:

  • usage:
    <VariableName> ? END:;
    

Example:

  • Create a loop that runs while a conditionObject is true:
    repeatLoop # LOOP:<conditionalObject>;
    repeatLoop ? END:;