Jump to content

Rebol Programming/true?

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
TRUE? val 

DESCRIPTION:

[edit | edit source]

Returns true if an expression can be used as true.

TRUE? is a function value.

ARGUMENTS

[edit | edit source]
  • val -- (Type: any)

SOURCE CODE

[edit | edit source]
true?: func [
    "Returns true if an expression can be used as true." 
    val
][not not :val]