The "is_even" Function

Syntax#

is_even(n);
ArgumentTypeDescription
nrealA number to check parity of

Description#

Returns true if a given number is even, and false if odd. Invalid inputs will be returned as even.

Example#

if (is_even(var_num)) {
show_message("I'm even!");
} else {
show_message("I'm odd!");
}