EVENP _ _ _ _ _ _ _ _ _ _ _ _ operator
The evenp logical operator returns true if its argument is an even integer, and nil if its argument is an odd integer. An error message is returned if its argument is not an integer.
<integer> must evaluate to an integer.
aa := 1782; AA := 1782 if evenp aa then yes else no; YES if evenp(-3) then yes else no; NO
Although you would not ordinarily enter an expression such as the last example above, note that the negative term must be enclosed in parentheses to be correctly parsed. The evenp operator can only be used in conditional statements such as if...then...else or while...do.