ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Tutorial: Editing rules in Word 2007 > Step 4: Define multiple conditions for a rule

In this step, you add an additional condition statement to the "Coverage Special Offer: Eligibility" rule you created in the previous step.

This new condition will ensure that only rental agreements starting in the month of December are eligible for the Coverage Special Offer.

In this step, you will work with Sentence Completion mode switched off.

Add a new condition statement to your rule
  1. On the Rules tab, in the Write group, disable the Sentence Completion option.
  2. When Sentence Completion mode is disabled, inserting phrases from the completion menu will only insert text up to (but not including) the next placeholder.
  3. Place the insertion point before the word "The" at the beginning of the first condition in the "Coverage Special Offer: Eligibility" rule, as shown below:
  4. If
       The coverage subtotal of the rental agreement is at least 90
  5. Press CTRL+SPACE.
  6. The keyboard shortcut CTRL+SPACE displays the completion menu without inserting a space character.
  7. In the completion menu, select the phrase "all of the following conditions are true :", then press ENTER.
  8. Press CTRL+SPACE to display the completion menu and insert the phrase "- <condition>".
  9. This inserts a new line and indents the existing condition. A dash is inserted before the condition to indicate that this is part of a group of conditions. All the conditions in the group must be satisfied for the rule to apply.
  10. Move the insertion point to the end of the current line, then press SPACE to display the completion menu.
  11. In the completion menu, select and insert the phrase "- <condition>" to add a second condition line.
  12. Press SPACE and type The pickup.
  13. In the completion menu, select and insert the phrase "The pickup date of <a rental agreement>".
  14. Because Sentence Completion is disabled, only the text of the selected phrase is inserted, not the <a rental agreement> placeholder. This makes it easier to type conditions directly in the document if you are already familiar with your business vocabulary.
  15. Press SPACE, then either type the rental agreement, or select this option from the completion menu.
  16. Press SPACE, then type is in, then press SPACE again.
  17. The completion menu proposes a list of months to choose from.
  18. In the completion menu, select "December", then press ENTER.
  19. Your new rule is now complete, and should read as follows:
    If
        All of the following conditions are true :
            - The coverage subtotal of the rental agreement is at least 90
            - The pickup date of the rental agreement is in December
    Then
        The rental agreement qualifies for the "Coverage" offer ;
  20. Click Save (or press CTRL+S) to save your changes before continuing.

Next: Step 5: Create a new rule by copying an existing rule