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

REBOL 3 Functions: get

get  word  /any

Gets the value of a word, path, or values of an object.


word - Word, path, object to get


/any - Allows word to have no value (be unset)

See also:

set   value?   in  


The argument to get must be a word, so the argument must be quoted or extracted from a block. To get the value of a word residing in an object, use the in function.

value: 123
print get 'value
print get second [the value here]
print get in system/console 'prompt

If the argument to get is an object, the result is the same as that of values-of.

  TOC < Back Next > - WIP Wiki Feedback Admin