REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: even?

even?  number

Returns TRUE if the number is even.

Arguments:

number [number! char! date! money! time! pair!]

See also:

odd?   zero?  

Description

Returns true only if the argument is an even integer value. If the argument is a decimal, only its integer portion is examined.

print even? 100
true
print even? 7
false


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin