Category: Script Since engine version: 4.9.1.0 GWE
Description
Executes a string as script.
Syntax
any eval
(string strScript);
Parameter
strScript:
Script to be executed
Example
var v1, v2, v3, v4, v5;
for(var i = 1; i <= 5; i++) eval( Format("v%d = %d", i, i * i) );
Sets the variables v1 to v5 with the squared values of 1 to 5. (The script snippets "v1 = 1", "v2 = 4" ... "v5 = 25" are created with Format and executed with "eval".)