Phantom Documentation

[Help Home] [Phantom Home]
Evaluate

Evaluate(string)

Return Type: none
Parameters: string command
Description:
The Evaluate function will run the input string as though it were a script command. This is equivalent to typing the string command directly into the console or to inserting a new command in-line in a script.

Example Code
1 >>string s = "int i" + string(1) + " = 10;";
2 >>disp(s);
int i1 = 10;
3 >>Evaluate(s);
4 >>disp(i1);
10


 


Copyright 2000-2011 Phantom Automated Solutions