how would i check to see if a variable comes out to an even or an odd number
or just
if(odd)
opps pressed tab enter..
or just if(odd) { do this } else { do that }
// Supposing $n is a number if ( $n % 2 ) { do this } else { do that }
🙂
i think the code shoul be:
if ( ($n % 2)==0) { do this } else { do that }