Search…
⌃K
Links

even

To return "true" if the number is even
With this function, you can check whether a number is even, i.e. divisible by 2 without remainder. The return value is either Yes (true) or No (false). The 0 is also evaluated as even.

Syntax

even(number)

Return

boolean

Examples

1
even(10 + 12)
Result: Yes (true)
1
even(10 + 13)
Result: No (false)
1
even(0)
Result: Yes (true)
1
even(10.2)
Result: No (false)

See also

odd, which returns Yes (true) if the number is odd.
Last modified 4mo ago