Originally Posted by
Norm
If you use a for loop and look at each of the characters in turn with the loop's index, the value of the index can be used with an if statement to detect the position of the character. The index's value will be either even or odd. Use the modulus operator to check the index's value:
theIndex % 2 will return 0 or 1 depending on if the index is even or odd
Please wrap all posted code in code tags.
Thanks for your reply.
I will try it out!
Sorry its my first time here, will take note in the future!
Thank you!!!