ISEVEN
The function ISEVEN outputs TRUE if the given Number is even.
This function takes a Number as input. It outputs a boolean: TRUE if the given Number is even, FALSE if it isn't.
Declaration
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:
The following example checks to see if the number two is even. It is:
The following example checks to see if the number 2.2 is odd. It isn't, because 2.2 isn't an integer:
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.
Last updated