User Tools

Site Tools


syntax:functions:isodd

IsOdd(number)

Category: Number function


Description

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


Arguments

ArgumentTypeDescription
numberIntegerThe value to be tested as odd.


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) = TRUE
iseven(42) = FALSE
iseven(#2021-10-21) = FALSE //2021-10-21 is 44480 as a date serial value, which is not odd.
iseven(10*100) = FALSE  //Passing in calculations is supported.
iseven({MyNum}*[MyVal]) = TRUE  //{MyNum}=5, [MyVal]=3; parameters are supported.


See also

syntax/functions/isodd.txt · Last modified: 2021/07/27 22:53 by craigt