| loop [message #1095216] |
Mon, 26 August 2013 15:55  |
Mahin Abbasipour Messages: 9 Registered: June 2013 |
Junior Member |
|
|
Hi,
In one of my elements, I have an attribute which is from the type integer. I want to do some imperative steps as many as the value of that attribute is. I am wondering is it possible to do that in the do section of my rule? If so, how?
thanks.
|
|
|
| Re: loop [message #1095657 is a reply to message #1095216] |
Tue, 27 August 2013 06:53  |
Hugo Bruneliere Messages: 560 Registered: July 2009 |
Senior Member |
|
|
Hello,
ATL provides an implementation of the for statement.
However, as using imperative code is not the best recommended practice in ATL, we generally prefer to use iterators over collections.
Best regards,
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.01642 seconds