When posting code select it and hit the # icon.
It is not too late you can go back and modify your post.
in the mean time what is this?
if(thisPin = // turn the pin on:
Will it compile?
Exactly what do you want to do?
you can find an odd number by looking at the least significant bit with a bitwise and operation &
if( (thisPin & 1 ) == 0) { // the number is even else it is odd