This command is used to create a user-defined function. VarName is the name of the function (do not include the @ at the start of the name), and value is an expression to assign to the function. You can use the parameters %1 to %99 to refer to arguments passed to your function.
NOTE: In TeSSH and in TeSSH versions prior to 2.0, this was the #FUNCTION command. In v2.0 or later, the #FUNCTION command creates script functions that require the #RETURN command, and #VARFUNC is used for inline user functions.
will display 5*4*3*2*1 given the above definition
Add comment