|XP is just a number|
Re^4: How to skip certain values in a foreach loopby samarzone (Pilgrim)
|on Dec 28, 2010 at 14:31 UTC||Need Help??|
You should improve the structure of $vars. You have n values in @AdminTime and 5*n values in @AdminEndDate 5 for each value of @AdminTime. Right!!!
For example you have @AdminTime as ('day1', 'day2', 'day3') and @AdminEndDate as
Make your @AdminEndDate array like
You can now run a loop from index 0 to $#AdminTime and use the index number for both the arrays. You'll, however, have to modify your template code a little to dereference the inner array references of all five values corresponding to each day