Evaluate an expression and set the specified environment variable with the result.
variable Environment variable name where the result is stored. expr Expression to evaluate.
Parameter expr follows the same rules as parameter expr for command CALC. Also, when parameter expr includes characters that have a special meaning (eg. <, >, & etc) then enclose the complete expr in brackets, as follows :-
LET variable=( expr )
Examples on using LET.