Functions

Functions are the fundamental components of VTS. A function is a named operation that may return a value, perform an operation or both. For example, the square root of a number is returned by a function named Sqrt. The Beep function will cause a tone to sound.

Some examples of functions are:

Sqrt(10);

Log(X);

Limit(X, 0, 100);

YLoc();

YLoc;

Note the use of commas to separate parameters when more than one is required.

Upper and lower case letters are treated the same so "sqrt", "Sqrt", and "SQRT" are all considered to be the same function (square root).

Topics in this section:

Function Parameters

Functions In States, Functions In Scripts

Expressions

Operators in Statements

Graphics Functions

Automatically Reset Functions

Threading