Expressions

An expression is a combination of symbols including numbers, operators, variables and groupings that are used to specify a mathematical function. Expressions result in a numerical value.

The following are examples of expressions:

  • 5
  • 3 + 7
  • 'x' + 4
  • ('x' + 5) - 'y'
  • (3 + (('x' - 'y') * 12)) - 1
  • 'x' > 9
  • ('x' > 3) and ('y' < 5)
  • (('myShow' + 1) > 5) or 'maintenanceMode'

These examples show the use of operators (such as +, -, >, and and), variables (such as ‘x’, ‘y’, and ‘maintenanceMode’) and groupings (using parenthesis).

The following sections explain each of these expression components in detail: