Skip to content
Math & Text isodd

$isOdd — true when a whole number is odd.

`true` when a whole number is odd.

Syntax

$isOdd[integer]

Parameters

  • integer (integer, required) — The number.

Return Value

  • string.

Usage

$isOdd[7] → "true"

Example

$sendMessage[$isOdd[7]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.