02 Jul
Is a number even or odd?
It’s very easy to work that out. You just need to use the Modulus function (%).
var isEven:Boolean = ((num % 2) == 0);
credit: bit-101

It’s very easy to work that out. You just need to use the Modulus function (%).
var isEven:Boolean = ((num % 2) == 0);
credit: bit-101