Thats easy, just do something like
if (($num % 2) == 0) {
print "Number is even;"
}
else {
print "Number is odd";
}
The % is the mod operator, and returns the remainer of, in the case num/2 .. if the result is 0, that means it was divisible by 2 ... and thus even.
'