v - luxembourg/muxcode-clm GitHub Wiki

V()

FUNCTION: v(<string>)

Depending on <string>, the V function can be used as an alternative for percent (%) substitution, as a replacement for get(me/<arg>), or as a way to access all arguments (the first ten and beyond).

If <string> is two characters long or longer and starts with a letter, then the object performing the v() call (and its parent, if necessary) is searched for the named attribute, and its value is returned if possible.

If <string> is a single letter, a percent substitution is performed on the argument (so that v(o) is equivalent to %o, for instance). The percent form (%o in the previous example) is preferred as it is faster, and there are no longer any security problems associated with it. Note that attributes with single-character names cannot be retrieved with v().

If <string> begins with a digit, it represent an argument number equivalent to %0, %1, ..., %=<99>.

Note that the %=<> substitution is nearly equivalent to v() except that single letters are treated as an attribute name instead of a percent substitution.

Related Topics: GENDER, SUBSTITUTION, PARENT OBJECTS, get