-
Separate every 3 entries into 2 arrays? (or other solution)
Hi all, need some help:
I'll have an array where every 3 entries, the target value changes. For example: the values of myVar(1) to myVar (3) are around 10, while the values of myVar(4) to myVar(6) are around 20. Entries 7-9 go back to 10, 10-12 go back to 20, and so on...
Now, I'm going to be doing several things with the different sets of data, so I think the easiest way to do this is to make a "low" array and a "high" array, but I don't want to have zeroes as placeholders in the new arrays. Any clue how to do this? Or if there is a simpler way to refer to every 3 entries from the original array?
Thanks,
Matt
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules