Usage:
/EXPR expression
Evaluates expression and prints its value. This is a shorthand for "/eval /echo -- $$[expression]".
/eval /echo -- $$[expression]
Example:
command: /set x=4 command: /expr x * 2 output: 8
/set x=4
/expr x * 2
8
See: expressions