This is an old revision of the document!
Eval
Evaluates the supplied string using the expression parser
Description
Float:Eval( const string[] )
Return the resulting value. If the expression is invalid, the return value is zero (0.000)
NOTE: The Eval script function does not support tags.
Parameters
string | Expression string to be evaluated |
Return value
Floating point value of the expression after evaluation.
Example usage
new Float:f = Eval( "12.34-2.34" ); // The value of f is now 10.00
NOTE: First appeared in firmware 23112801