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.

💡 Example

qml_evaluatestring('a = 2 + 4')

🔗 See also

qml_evaluatefile.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?