even()/Odd()

even() checks whether the Integer-Value passed is even
Odd() checks wether the Integer-Value passed is odd.

PreprocessorThe function is also available in the Preprocessor, does not create machine code.

Syntax: boolean = even( Expression )
Syntax: boolean = Odd( Expression ) Example:

  dim a as byte
  a=7
  if even(a) then
   print "The number ";str(a);" is even."
  else
    print "The number ";str(a);" is odd."
  end if

See also: Fodd, Feven