Skip to main content
Space Cadet
Jan 24, 2024 10:21 AM UTC
Question

Is there a way to exit the Iteration

Hi 

Could someone please tell me if there is a way to exit the Iteration if my condition is satisfied.

example: 

Iteration : 25

my condition is satisfied at 5. i want the execution to be stopped at this place.

    1 reply

    Specialist
    Jan 25, 2024 9:16 AM UTC

    You would need to put the verification of the condition in the condition, not in the loop. 
    And you would check that the condition is NOT fulfilled. 
    Like: 
    Do: nothing / something
    Condition: Condition NOT satisfied. 

    Regards,