Page 1 of 1

how check if the number is ODD or even

Posted: May 15th, 2018, 9:09 am
by jkajiba
can someone help a logic to check if a number is even or ODD

thank you

Re: how check if the number is ODD or even

Posted: May 15th, 2018, 12:18 pm
by Gregory Martin
You can check the remainder when dividing by two:
if VALUE % 2 = 0 then
    errmsg("VALUE is EVEN");
endif;