Expressions

Literals, operators, comments, keywords, identifiers, line terminators, and white space come together to form a list of expressions, even if the list only contains a single expression. In general, each expression in the list resolves to a value, and the value of the list as a whole is the value of the last expression in the list.

For example, consider the following scenario of two fields on a form design:

Field name

Calculations

Returns

Field1

5 + Abs(Price) "Hello World" 10 * 3 + 5 * 4

50

Field2

10 * 3 + 5 * 4

50

The value of both Field1 and Field2 after the evaluation of each field’s expression list is 50 .

FormCalc divides the various types of expressions that make up an expression list into the following categories:

// Ethnio survey code removed