Conditional Text
You can set up fields in your document that display text when a condition that you define is met. For example, you can define the conditional text that is displayed in a series of reminder letters.
Allolevas näites on tingimusliku teksti määramine kahesammuline toiming: kõigepealt tuleb luua muutuja, seejärel tingimus.
To Define a Conditional Variable
Meie näite esimeses osas määrame tingimuslause muutuja.
-
Choose
, and then click the tab. -
Click "Set variable" in the
list. -
Type a name for the variable in the Reminder.
box, for example -
Click "Text" in the
list. -
Enter 1 in the box, and then click .
The Format list now displays a "General" format.
To Define a Condition and the Conditional Text
Näite teises osas tuleb määrata vajalik tingimus ning lisada kohahoidja tingimusliku teksti kuvamiseks dokumendis.
-
Aseta kursor tekstis kohta, kuhu soovid tingimusliku teksti sisestada.
-
Choose
, and then click the tab. -
Click "Conditional text" in the
list. -
Type Reminder EQ "3" in the box. In other words, the conditional text will be displayed when the variable in the field that you defined in the first part of this example is equal to three.
Tingimuse osa "3" ümbritsevad jutumärgid osutavad sellele, et meie näite esimeses osas määratud muutuja on tekstistring.
-
Type the text that you want to display when the condition is met in the Then box. There is almost no limit to the length of the text that you can enter. You can paste a paragraph into this box.
-
Klõpsa Lisa ja seejärel Sulge.
To Display the Conditional Text
Meie näite korral kuvatakse tingimuslikku teksti juhul, kui tingimusliku muutuja väärtus võrdub 3.
-
Place your cursor in front of the field that you defined in the first part of this example, and then choose Edit - Fields.
-
Replace the number in the
box with 3, and then click . -
Kui väli automaatselt ei uuene, vajuta F9.