Assignment
Assigns the result of an expression to a temporary variable.
Syntax:
TempVariable := Expression, followed by an ampersand (&), which is the statement separator.
Examples:
T := A+B+C assigns the sum of A, B, and C to temporary variable T.
R := A/B assigns the ratio of A and B to temporary variable R.
D_DT := DOB #DATEPLUS 65y assigns the date that age 65 is attained (determined by adding 65 years to the database field DOB) to temporary variable D_DT. Use of the suffix _DT instructs the sample life output to display the result in readable date format, instead of displaying the date’s numeric value (the number of days elapsed since 1/1/1900).
Note: The equals sign must immediately follow the colon (no space between them).
Related Operators: