User Tools

Site Tools


4rpl:commands:break

Index
Flow Control

break

break

Description

Immediately exits the body of a ‘while/repeat/endwhile’ block or a ‘do/loop’ block.

Examples

do(5 0)
    if (I mod(2) eq0) #divide inner loop with modulo 2 and test if zero
        break
    endif
    trace(I)
loop

Index

4rpl/commands/break.txt · Last modified: 2021/12/23 14:25 by Karsten75