1. Statements and comment lines
Prev | Chapter 3. The language used to write formulas | Next

## 1. Statements and comment lines

A formula can contain several statements, blank lines and comment lines. Example:

    x = 2

    # This a comment line

    y = 2
    = x + y

- Spaces are allowed inside statements.

- Statements must end with a newline.

- All statements except last one are used to assign to local variables the values of intermediate expressions.

- Last statement is the result of the formula. It must start with '='.

- Some identifiers are reserved: TRUE, FALSE and all references to table cells: A1, B2, DC273, etc. Do not use reserved identifiers for the names of your local variables. Example: x=2 is OK, x1=2 is not.

Prev | Up | Next
Chapter 3. The language used to write formulas | Home | 2. Expressions