This is an old revision of the document!


Arithmetic evaluation (command)

(( <EXPRESSION> ))

This command evaluates the arithmetic expression <EXPRESSION>.

If the expression evaluates to 0 then the exit code of the expression is set to 1 (FALSE). If the expression evaluates to something else than 0, then the exit code of the expression is set to 0 (TRUE). For this return code mapping, please see this section.

The functionality basically is equivalent to what the ''let'' builtin command does. The arithmetic evaluation compound command should be preferred.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information
You could leave a comment if you were logged in.
  • syntax/ccmd/arithmetic_eval.1284882334.txt
  • Last modified: 2013/11/05 00:16
  • (external edit)