| Iterate through an array and conditional check [message #967008] |
Thu, 01 November 2012 08:10 |
Kosala Yapa Messages: 133 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
|
|
|
Powered by
FUDForum. Page generated in 0.01520 seconds