In Java 'FOR' loop, we know that we are allowed to use the instructions like 'continue'
How to use the same instructions in Blaze 'FOR' loop??
"for" loop in Blaze is actually "for each" which is supposed to be a simple and business-friendly way of processing collections, so it will repeat until each element in the collection is evaluated. The only way to get out of this loop in Blaze is to wrap it into a try-catch block and throw an exception from inside.
You'll get more flexibility with other looping constructs such as while..do. In it you can evaluate a condition each time before repeating the loop. If you use a flag that is being manipulated from within the loop and if you combine it with if..then sections inside the loop, an equivalent of "break" and "continue" directives can always be implemented.
But I must say that the purpose of Blaze SRL (structured rules language) is not to reproduce everything that Java or C# has, so most complex algorithms should probably be left to these languages. You can then easily import classes where they are implemented and call they methods from Blaze rules.
Retrieving data ...