Store variables as expressions

Tekla Tedds
Modified: 20 Mar 2025
2026
Tekla Tedds Tekla Tedds for Word

Store variables as expressions

By default, Tedds for Word stores all variables as values. However, it may sometimes be useful to store variables as expressions instead. This is particularly useful when the value of a term in an expression changes during calculations. To store variables as expressions, see the following instructions.

Note:

The following only applies to Tedds for Word.

Store a variable as an expression

  1. Before the variable name, type $
  2. Type the expression that you want to store.
  3. Calculate the expression.

    The value of the variable is now stored as an expression.

Example

To understand the difference between storing variables as values and expressions, consider the following calculation:

r = 1 m

A = pi * r 2 = ? m2

This can be calculated to give:

r = 1 m

A = pi * r 2 = 3.142 m2

The variable A is stored as a number - the value resulting from the calculation:

If you insert $ before the variable name in the second line of calculation as follows:

$A = pi * r 2 = ? m2

When you recalculate it now gives:

r = 1 m

$A = pi * r 2 = pi * r2 m2

The variable A is now stored as the expression that is used to define the variable:

Because A is now an expression, each time you reference A in later calculations, the value returned is re-calculated.

Therefore, if the value of r changes, the result of A changes as well.

Was this helpful?
Submit
Previous
Next