Define variables
You define all variables in the same way whether you are defining variables for a calc section or for a document. After you have created a variable and assigned a value to the variable, you can use it throughout your calculations in the same calc section or document. To create variables, see the following instructions.
The following only applies to Tedds for Word.
-
A value
For example x = 45 or Z = 245 N/mm2
-
A string
For example text = "This is a string of text."
-
The result of an expression
For example C = A + B
Variable naming rules
Variable names must follow some simple rules. They must:
-
Only contain alphanumeric characters (A-Z, a-z, 0-9), Greek characters, underscores (_), and full stops (.).
Note:- Variable names are
case-sensitive.
For example, Area and area are two separate variables.
- Variable names take
subscripts into account.
For example, Aeff and Aeff are two separate variables.
- Variable names are
case-sensitive.
-
Not be longer than 32 characters.
-
Not start with a number.
-
Not be the same as a Tedds function name (for example sin or median).
-
Not contain superscript characters.
-
Not contain any formatting other than subscripts.
Note: When a part of a variable name is in subscript, the part can contain spaces and a list separator (, or ;).