The user can specify expression instead of immediately entered value of reference to another field.
Syntax: $$(expression text)
An expression can contain: constants, operations and references to field value as @'field name'.
Operations
Operations '*','/' and unary '-' are acceptable for numeric operands only.
Right operand | ||||
---|---|---|---|---|
Left operand | Integer | Float | Date | Time |
Integer | + | + (float) | Add N days | Add N seconds |
Float | + (float) | + | N/A | N/A |
Date | add N days | N/A | N/A | N/A |
Time | add N seconds | N/A | N/A | N/A |
Right operand | ||||
---|---|---|---|---|
Left operand | Integer | Float | Date | Time |
Integer | - | - (float) | N/A | N/A |
Float | - (float) | + | N/A | N/A |
Date | subtract N days | N/A | N/A | N/A |
Time | subtract N seconds | N/A | N/A | N/A |
Notes and limitations:
Example: 'HireDate' must be greater than 'BirthDate' + 18 years (265*18 days):