Softanza
StartFrançais
Softanza
How-to · Numbers

Check whether a number is even or odd

Softanza
Q(4).IsEven()
#--> TRUE
Output
1

ran: printed what the recipe promises

Softanza
Q(7).IsOdd()
#--> TRUE
Output
1

ran: printed what the recipe promises

run on 2026-10-02 22:33 inside the library at commit 0e72e2e2c; the expression carrying the promise was printed for the run · The recipe on GitHub(opens in a new tab)

The methods

stzNumber.IsEven · stzNumber.IsOdd

See also

Words for this task: even, odd, parity, divisible by two, is even, is odd