/expr

Usage:

/EXPR expression


Evaluates expression and prints its value. This almost the same as "/eval /echo -- $$[expression]", except that {#} and positional parameters ({1}, etc) are not defined. If you neet to print a value of an expression that uses positional parameters, use /result or echo().

Example:

command: /set x=4
command: /expr x * 2
output: 8

See: expressions


Back to index
Back to tf home page
Copyright © 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys