Skip to main content

( expression )

Laurence MorganLess than 1 minute

( expression )

Inline expressions

Description

Expressions can be inlined via parenthesis. For example:

» echo (1 + 2)
3

The opening brace has to be the first character of that parameter, otherwise that parameter will be treated like a string.

» echo 1+(1 + 2)
1+(1 + 2)

See Also

  • Operators And Tokens: A table of all supported operators and tokens
  • echo: Print a string to the stdout with a trailing new line character
  • expr: Expressions: mathematical, string comparisons, logical operators

This document was generated from gen/parser/expr-inlined_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan