string

From GMVision Wiki

Jump to: navigation, search

The function string(Var) converts a real value to a string and returns the result. If the value is already a string, nothing happens. If the value is null, then it will return a blank string.

Usage

Usually used when you need to add a real value to the end of a string.

Arguments

string( (any type)  Var );
  • Var: Any variable or value, usually real.

Example

score_text="You have "+string(score)+" points";
Personal tools
Google AdSense