Eval

Returns the value of a given form calculation.

Syntax

Eval(s)

Parameters

Parameter

Description

s

A valid string representing an expression or list of expressions.

The Eval function cannot refer to user-defined variables and functions. For example:

var s = "var t = concat(s, ""hello"")" 
eval(s)

In this case, the Eval function does not recognize s, and so returns an error. Any subsequent functions that make reference to the variable s also fail.

Examples

The following expressions are examples that use the Eval function:

Expression

Returns

eval("10*3+5*4")

50

eval("hello")

error

// Ethnio survey code removed