Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

eval

Evaluates some user input by executing the given code.

eval(code)

Evaluates the given string as code and returns the value.

Argument code

String

Returns 1. entry

Value

Example

eval("2+3")

Evaluates the input and returns the value 5.

Example

eval("17*5")

Evaluates the query and returns the result of 17 * 5 = 85.

Example

eval("[1 2 3]")

Creates a new vector with the entries 1, 2 and 3.

Clone this wiki locally