in reply to Array Parse
We like to see at least an attempt when requesting for help.
You would use a loop to go through the array. You can use a counter and increase its value by 2 each iteration of the loop.
Now if you mean the contents of the array values being even then you can use the modulos operator % to check for evens.
AckHit the submit key instead of preview....
I was going to add some stuff about grep and map but Aristotle already did that..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array Parse
by Anonymous Monk on Jan 19, 2003 at 19:36 UTC | |
by Marza (Vicar) on Jan 19, 2003 at 19:45 UTC |