MAXScript Language Reference > Creating Functions >

# Visible Class For '&' Reference Values

Dereferencing Operator

In releases prior to 3ds Max 4, the class of a reference value (as returned by the '&' prefix operator) was shown as Value. It is now the class 'ValueRef'.

EXAMPLE
    ref = &foo.name
    classOf ref -> ValueRef
    if classOf x = = ValueRef then y = *x

Nested property accessing allowed in '&' reference values in MAXScript.

This allows constructs like: r = &$foo.pos , and later *r.controller to mean $foo.pos.controller.

#### See Also

- By Reference Parameter Passing

- Dereferencing Operator