@eval() Function

Top  Previous  Next

@eval() function assumes that the given string is an MScript expression. It evaluates it and returns the result.

(since v4.2)

Syntax:

@eval(string-expression)

 

Example:

@eval('12 / 2') @// returns 6

 

@set(A,10)

@set(B,30)

@eval('(A + B) * 5') @// returns 200