Documentation

eval

Syntax: %eval(expression)

evaluate the expression and return the result

NB: Do not use this function unless you're sure you have to. While it was used very often in TeSSH, most of its uses have been deprecated in TeSSH. In TeSSH, evaluating an expression is as simple as surrounding it in brackets.

Use of this function is inadvisable because its argument is treated as a string and only compiled at runtime, which is slower than simply using brackets.

Examples:

#ECHO %eval(10-1)
displays: 9

#ECHO %eval(10!=1)

displays: 1

Add comment

Login or register to post comments