ezeio2:scriptref:eval

This is an old revision of the document!


Evaluates the supplied string using the expression parser

Description

Float:Eval( 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

  • ezeio2/scriptref/eval.1701367027.txt.gz
  • Last modified: 2023-11-30 17:57
  • by andreh