![]() |
![]() |
![]() |
![]() |
V commands
V commands perform special operations. For example, $print prints an object's definition. $include includes a V file. #define allows you to define conditional code.
Summary of commands by category
Here is a summary of V commands by category. Commands that appear as a group, with the first command not indented and the others indented, are documented together under the first command.
General coding rules
Format
Commands consist of a command name followed by zero or more arguments. Commands always begin with a $ character (except for the #define command). Commands do not end with a semicolon.
No continuation lines
Commands can start anywhere on a line, but cannot be split across lines.
Separators
A command name and each of its arguments must be space- or tab-separated.
Case sensitive
AVS/Express is case sensitive. $print is a command, but $Print is not.
Specifying an object name
Most commands take an optional object name as one of their arguments:
Default object -- The object name is usually optional, and defaults to the current object. In the syntax diagram for an object, optional arguments appear in brackets. For example: $print [object].
Subobjects -- When you do specify an object name, you must reference a subobject of the current object. To refer to an immediate subobject, specify an unqualified name. To refer to a lower-level subobject, either navigate to the object before issuing the command, or specify a pathname.
Redirecting output to a file
You can redirect any command's output to a file, by specifying UNIX-style redirection at the end of the command. This is valid on Windows systems as well.
The following example redirects the output of the $save command to a file. Since $save prints an object's V definition, the command with redirection saves the object's V definition to a file, and is equivalent to the File->Save Object pull-down command in the Network Editor:
The default directory is the directory in which AVS/Express started.
![]() |
![]() |
![]() |
![]() |