# Odd

From Lazarus wiki

│
**Deutsch (de)** │
**English (en)** │

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

The value supplied to `odd`

can be any integer: longint, longword, int64 or qword.

## See also

- Boolean
- § “boolean operators” in the “Free Pascal Reference Guide”
- § “logical operators” in the “Free Pascal Reference Guide”
`and`

Bitwise and`or`

Bitwise or`not`

Bitwise negation (unary)`shl`

Bitwise shift to the left`shr`

Bitwise shift to the right`xor`

Bitwise xor`odd`

Determine if number is odd- << Bitwise shift to the left (same as shl)
- >> Bitwise shift to the right (same as shr)
- $Bitpacking
- Bit manipulation

}}