Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| ezeio2:scriptref:eval [2023-11-30 17:56] – created andreh | ezeio2:scriptref:eval [2023-11-30 18:00] (current) – andreh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== Eval ==== | ==== Eval ==== | ||
| - | Evaluates the supplies | + | Evaluates the supplied | 
| === Description === | === Description === | ||
| - | < | + | < | 
| Return the resulting value. If the expression is invalid, the return value is zero (0.000) | Return the resulting value. If the expression is invalid, the return value is zero (0.000) | ||
| Line 23: | Line 23: | ||
| <code javascript> | <code javascript> | ||
| - | new Float:f = Eval( " | + | new Float:f; | 
| + | |||
| + | f = Eval( " | ||
| // The value of f is now 10.00 | // The value of f is now 10.00 | ||
| + | |||
| + | f = Eval( " | ||
| + | // If the value of field 1 is larger than the value of field 2, f=1.000. Otherwise f=0.000. | ||
| </ | </ | ||
| <wrap hi>NOTE: First appeared in firmware 23112801</ | <wrap hi>NOTE: First appeared in firmware 23112801</ | ||