User guide
Creating a document using variable objects
Dem
onstration: Creating a simple formula
Displaying the price of a product
T
1
2.
For the WEIGHT variable: Enter 788 (the weight of the product being 788
''Please enter the weight in g'' in the Prefix box, then click OK.
3. For the PRICEPERKG variable: enter 15.70 (the price/kg bein
and enter ''Please enter the price per kg'' in the Prefix box, then click OK.
4. Add a formula and name it price.
5. Enter the formula WEIGHT*PRICEP
6. Save your document.
he production label must show the price of the product as a function of its weight and the price per kilogram.
. Open a label. Two variables have to created: WEIGHT and PRICEPERKG.
g) as the Local value, and enter
g FF15.70) as the Local value of the variable,
ERKG/1000, then click OK.
Demonstration: Adding the "Warning" Formula variable for displaying a warning message
the following sequence, we will create a formula to display a warning message telling the user that the value
the weight value exceeds 1,000kg, the message ''Attention! Error! Total Weight exceeds maximum!'' will
. Open the label.
and name it ''Warning''.
ing expression:
eds maximum!'', '''').
font and set its Height to 12.70 mm.
nt.
Information on the IF function
Returns one value if the condition you specify is TRUE, and another value if it is FALSE.
Use the IF function to carry out conditional tests on values and formulas.
Syntax
"val_if_true","val_if_false”) ”expr" represents any value or expression, the result of which can be TRUE
val_if_true is the value returned if "expr" is TRUE. The val_if_true argument can be another formula.
.
The Form data source
In
of t
he Total_Weight shared variable exceeds 1,000kg.
If
appear.
1
2. Create a formula
3. In the Formula dialog box, enter the follow
if(Total_Weight>1000, ''Attention\n!Error!\n Total Weight exce
4. In the Output tab, enter 50 in Maximum length and click OK.
5. Position the variable as text within the label.
6. In the Text dialog box, select Scalable as the
7. In the Paragraph tab, check the Wordwrap option then check Centered in Alignme
i
f("expr",
or FALSE.
val_if_false is the value returned if "expr" is FALSE. The val_if_false argument can be another formula
31