Getting started with Flow.apex
Break and Continue
We can use break
and continue
in any loop blocks.
Flow f = new Flow()
.inputAs('a', 'b').returnInteger()
.var('i = 0')
.doWhile('i < 10', Flow.block()
.doIf('i == 3', Flow.block()
.doBreak()
)
.var('output = debug(i)')
.var('i = i + 1')
);