Values in SET Instructions
You can set a variable to three kinds of values—a fixed value, another variable's value, and a value created by an expression. Be sure the variable and the value are the same type—set a Text variable to a text value, a Number variable to a number value, and so forth.
Fixed Values
A fixed value is a number, a date, a string of text, or TRUE or FALSE that is typed into the SET instruction. For example:
SET Receiving Office TO "Ridgefield"
SET Maximum Weight TO 5000
SET Client is Married TO TRUE
SET Property Items TO "Furniture|Automobiles"
Be sure to follow the rules for entering fixed values—for example, text must be in quotation marks and numbers cannot include commas. See Understand the HotDocs Scripting Language for an explanation.
Variables
You can set a variable to the value of another variable. That way, the user supplies the answer. For example:
SET Receiving Office TO Customer City
Expressions
You can use an expression to produce the value for a SET instruction. For example:
SET Total Weight of Shipment TO (Weight of One Unit * Number of Units) + (Weight of Pallet * (Number of Units / 12))