Odd

From Lazarus wiki
Revision as of 00:14, 17 October 2020 by Rfc1394 (talk | contribs) (fix lang bar)
Jump to navigationJump to search

Deutsch (de) English (en) polski (pl)
Return to Reserved words

The system function odd returns the value true if and only if the argument passed to it is odd. The odd function must be passed an integer value, it cannot accept reals.

Usage:

{{{1}}}

or

if odd(i) then ...

Where

B is a boolean variable and
i is an integer value.

The value supplied to odd can be any integer: longint, longword, int64 or qword.


navigation bar: Pascal logical operators
operators

and • or • not • xor
shl • shr
and_then (N/A)• or_else (N/A)

see also

{$boolEval} • Reference: § “boolean operators” • Reference: § “logical operators”