Predicate Functions [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation
HP Pascal/iX Reference Manual
Predicate Functions
There are three predicate functions in HP Pascal. They are odd, eof, and
eoln. The functions eof and eoln are described in Chapter 10 of this
manual.
odd
Usage
odd(x)
Argument
x Any integer expression.
Description
This function returns true if the integer expression is odd, and false
otherwise.
Example
Input Result
odd(int_var) depends on value of int_var
odd(ord(color)) depends on value of color
odd(2 + 4) false
odd(-32767) true
odd(32768) false
odd(0) false
MPE/iX 5.0 Documentation