User Tools

Site Tools


syntax:functions:iseven

IsEven(number)

Category: Number function


Description

This function tests if number is even and returns Boolean TRUE if so, or FALSE if not.


Arguments

ArgumentTypeDescription
numberIntegerThe value to be tested as even.


Return value type: Boolean (TRUE/FALSE)


Remarks

Passing in a date value results in a valid result based on the converted date serial value.


Examples

iseven(1) = FALSE
iseven(42) = TRUE
iseven(#2021-10-21) = TRUE  //2021-10-21 is 44480 as a date serial value, which is even.
iseven(10*100) = TRUE  //Passing in calculations is supported.
iseven({MyNum}*[MyVal]) = FALSE  //{MyNum}=5, [MyVal]=3; parameters are supported.


See also

syntax/functions/iseven.txt · Last modified: 2021/07/27 22:52 by craigt