Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Iterate through an array and conditional check
Iterate through an array and conditional check [message #967008] Thu, 01 November 2012 08:10
Kosala Yapa is currently offline Kosala Yapa
Messages: 159
Registered: September 2010
Senior Member
Hi there,

I have an array of modules sorted to module numbers.
modules=[mod1,mod2,mod3,mod4,mod5,mod8]

I need to iterate through each module and add null modules if there is no module for a module number. For example, in the above array, need to add null modules between mod5 and mod8.
Then the result is,
Allmodules=[mod1,mod2,mod3,mod4,mod5,null,null,mod8]

How to write this in atl to get the 2nd array from the 1st array?

Thanks in advance!
K
Previous Topic:Debugging an ATL module, which has external methods
Next Topic:Many to one transformation
Goto Forum:
  


Current Time: Wed Aug 27 15:08:09 EDT 2014

Powered by FUDForum. Page generated in 0.02108 seconds