AMT Help Files

Expressions

An expression is a combination of one or more specifications that represents a single value. The following specifications can be used inside an expression:

 Item  Description
 <Condition> Expression that results in true or false. Conditions can be used inside constructions with the IF...ENDIF  command.

 

 <Literal>

 Literal value (string), specified between single quotes ('<literal>').

 If a literal should contain a quote, this has to be specified as two quotes.

 Examples:

 Specification:              Evaluation:                
 '208'  208 
 ''''  A single quote (')
 '''  Invalid as a literal
 <Field
 specification
>

Specification to point to a certain data element, build up as follows:

[<Object>.]<Field>

 <Numeric>  Numeric value, which may contain a sign and/or decimals.
 <Operation>

 Combination of operands and operators that returns a single value. The operands may be literals, field specifications, numeric
 values or nested operations. Nested operations are specified between parentheses. The result of a nested operation is used
 as an operand in the operation in which it is nested.

 Example:

var1 := (var2 * var3) + 200
// (var2 * var3) is the nested expression, that is executed first.
// Next, the result value for that expression is used as an operand
// in the expression "<Result> + 200"