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

REBOL 3 Functions: not

not  value

Returns the logic complement.

Arguments:

value - (Only FALSE and NONE return TRUE)

See also:

complement   negate   and   or   xor   unless  

Description

The not function is a logic! function that returns true if the value is false or none. It will return false for all other values.

not true
false
not none
true
not (10 = 1)
true
not 0
false  ; take note of this
not 1
false

To complement an integer! use the complement function or negate function.


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