ISEVEN

The function ISEVEN outputs TRUE if the given Number is even.

This function takes a Number as input. It outputs a booleanTRUE if the given Number is even, FALSE if it isn't.

Declaration

ISEVEN(number) -> boolean

 

Parameters

number (required, type: Number)
The number that may or may not be even.

Return Values

boolean (type: boolean)
The result of checking if the given Number is even; TRUE means that it is and FALSE means that it isn't.

Examples

The following example checks to see if the number three is even. It isn't:

ISEVEN(3) -> FALSE

The following example checks to see if the number two is even. It is:

ISEVEN(2) -> TRUE

The following example checks to see if the number 2.2 is odd. It isn't, because 2.2 isn't an integer: 

ISEVEN(2.2) -> FALSE

 

Discussion

The function ISEVEN can be considered the opposite of the function ISODD – in cases where ISEVEN will output TRUE, ISODD will output FALSE, and visa versa.