qml_evaluatestring

Evaluates a js string.

Syntax

  • r = qml_evaluatestring(string_to_eval)

Input argument

  • string_to_eval - a string: a js code.

Output argument

  • r - a double, logical, int or string.

Description

Evaluates a js string.

If returned value cannot be converted to a basic type, it will converted to string.

See also

qml_evaluatefile.

Example

qml_evaluatestring('a = 2 + 4')

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated