Function VirtualVariableAsString(varname: string) : String
Returns the value of the VirtualVariable with name varname as a string.
This function returns the value as a string, which is useful if you are just sticking the value into your own scripting engine, if you don't know what type the variable is (e.g. real or integer) or if you want to do the conversion yourself with a CobraCore function such as ToInt.
Here's an example: