Jason,
Thanks for the clarification, that kinda helped, but I'm not really getting the output I wanted.
Let me explain again what I'm needing.
I have (2) dynamic numbers.
$x = 5;
$y = 14;
so my issue is how do I check for the following conditions...
IF $x < 0 ($x=0)
IF $x is even
AND $y is even ( do nothing)
IF $x < 0 ($x=0)
IF $x is odd
AND $y is odd ( do nothing)
IF $x < 0 ($x=0)
IF $x is even
AND $y is odd ( $y++)
IF $x < 0 ($x=0)
IF $x is odd
AND $y is even ( $y++)
I'm a bit lost how to write the statement to get the above.
I hope that I've explained myself better this time.