ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Set the default text for new rules

By default, when you insert a new rule, the rule body contains a basic rule template made up of a Condition clause (If) and an action clause (Then). Each clause contains a placeholder (a keyword surrounded by angle brackets):

 If
       <condition>
 Then
       <action>;

This template is a partially completed rule and acts as a starting point when creating new rules.

You can change the default rule template text by adding additional rule statements and placeholders, as required. For example, you could change the default text so that all new rules you insert include a Definitions part and an Else part. You can revert to the default rule text at any time.

To change the default text of new rules
  1. On the Rules tab, in the Customize group, click Options > Set Default Rule Text.
  2. The Set Default Rule Text dialog box appears.
  3. Edit or replace the existing text with the text that you want to display as the content of newly created rules.
  4. To create a placeholder, type a keyword between angle brackets (< >).
To reset the default rule text
  1. On the Rules tab, in the Customize group, click Options > Set Default Rule Text.
  2. The Set Default Rule Text dialog box appears.
  3. Click Reset to default.
  4. Click OK.