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) //Returns FALSE
iseven(42) //Returns TRUE
iseven(#2021-10-21) //Returns TRUE  (2021-10-21 is 44480 as a date serial value, which is even.)
iseven(10*100) //Returns TRUE  (Passing in calculations is supported.)
iseven({MyNum}*[MyVal]) //Returns FALSE  ({MyNum}=5, [MyVal]=3; parameters are supported.)
iseven(2.5) //Returns "#The argument must be a whole number"


See also

syntax/functions/iseven.txt · Last modified: 2021/08/11 15:22 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki