In this step, you create a new rule to check whether or not a rental agreement is eligible for a special discount.
For a rental agreement to be eligible, the value of the insurance coverage included in the rental agreement must be greater or equal to $90. To help you write the rule, you will use the Vocabulary pane.
-
If the Vocabulary pane is not visible, on the Rules tab, in the View group, click Vocabulary Pane to display the Vocabulary pane.
The Vocabulary pane lists all the available phrases and keywords that make up your predefined business vocabulary. The Vocabulary pane can be particularly useful to help you identify valid phrases to use when writing your business rules.
In this example, you need to insert a condition statement to check the amount of insurance coverage associated with a rental agreement. You will use the Vocabulary pane to identify the correct phrase to use in your business rule.
-
In the search box at the top of the Vocabulary pane, type the word
coverage.
As you type, the options listed in the vocabulary pane are filtered so as to only show those phrases that contain the word "coverage".
You should see the phrase "The coverage subtotal of <a rental agreement>" as one of the listed options.
-
Click the <condition> placeholder in the rule you just created and type
The coverage.
The option "The coverage subtotal of <a rental agreement>" is selected in the completion menu.
-
Press ENTER to insert the selected phrase.
The placeholder "<a rental agreement>" is selected in the document and the completion menu appears with the option "the rental agreement" selected.
-
Press ENTER to replace the placeholder <a rental agreement> with the selected phrase.
-
Press SPACE, then type
is at least
The option "is at least <a number>" is selected in the completion menu.
-
Press ENTER to insert the selected phrase.
The placeholder "<a number>" is selected.
-
Type
90 to replace the selected placeholder.
Your rule should now read as follows:
The coverage subtotal of the rental agreement is at least 90