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.

Arguments:

word - Word, path, object to get

Refinements:

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

See also:

set   value?   in  

Description

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
123
print get second [the value here]
123
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 > REBOL.com - WIP Wiki Feedback Admin