The following is an example of a complex expression that uses multiple names, operators, and literal data. It is preceded by a question mark so that when it’s typed into the Command window, it displays the resulting value:

? {"1st","2nd","3rd","4th"}[ ceiling( month( date( )) / 3 ) ] + " quarter"

Except for the question mark, the entire line is a single complex expression, made up of many smaller basic expressions. The expression is evaluated as follows:

  1. A literal array of literal strings is enclosed in braces, separated by commas. The strings are enclosed in double quotation marks.

The value of this complex expression is a string like "4th quarter".