$test = a$ % 2 == 0; //Modulo by 2 equals zero means it's even $test = a$ % 2 == 1; //Modulo by 2 euqals to one means it is odd
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)