Detecting EVEN or ODD variables

How can I detect if the variables are EVEN or ODD?

The if statements will depend on that.