|
Re: How to exit the FOR LOOP [message #486382 is a reply to message #486363] |
Thu, 17 September 2009 13:20 |
|
This is a multi-part message in MIME format.
--------------070600010908000606050706
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Hi Omran,
There is no such functionality in either Acceleo or OCL. However what
you seek seems like the "exists" collection iterator to me (and yes,
"exists" does shortcut the evaluation if an element fulfills the condition).
----------8<----------
[if (mv.columns->select(oclIsTypeOf(ViewExpColumn))->exists(let exp :
String = expression.trim().toUpper() in exp.startsWith('SUM') or
exp.startsWith('AVG') or exp.startsWith('MIN') or exp.startsWith('MAX')
or exp.startsWith('COUNT')))]
GROUP BY
[/if]
---------->8----------
Laurent Goubet
Obeo
Omran a
|
|
|
Powered by
FUDForum. Page generated in 0.02936 seconds