Skip to main content


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 12:10
Kosala Yapa is currently offline Kosala YapaFriend
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: Thu Apr 25 19:34:20 GMT 2024

Powered by FUDForum. Page generated in 0.02709 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top