I have a for loop statement and under a specific condition I want to
"exit" or "break" or "quit" the loop.
Does this capability exist?
here is the code that I am working on
[for (vc:ViewColumn|mv.columns)]
[if (vc.oclIsTypeOf(ViewExpColumn))]
[let vec : ViewExpColumn = vc.oclAsType(ViewExpColumn)]
[if (vec.expression.trim().toUpper().startsWith('SUM') or
vec.expression.trim().toUpper().startsWith('AVG') or
vec.expression.trim().toUpper().startsWith('MIN')or
vec.expression.trim().toUpper().startsWith('MAX') or
vec.expression.trim().toUpper().startsWith('COUNT'))]
GROUP BY
// I want here to exit the loop...how???
[/if]
[/let]
[/if]
[/for]