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

REBOL 3 Functions: value?

value?  value

Returns TRUE if the word has been set.

Arguments:

value

See also:

default   unset?   equal?   strict-equal?   same?  

Description

The value? function returns true if the specified word! has a value. It returns false if not.

test: 1234
value? 'test
true
value? 'not-defined
false

The word can be passed as a literal or as the result of other operations.

value? first [test this]
true
value? second [test this]
false


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