> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# add_rule

#### BooleanSelectionRule.add\_rule(rule, template\_rule=False, rule\_values=(0.0, 0.0), operation\_type='intersect')

Add selection rule to boolean selection rule.

* **Parameters:**
  * rule: The rule to be added.
  * template\_rule: Whether this is a template rule.
  * rule\_values: Parameters of the template rule (for instance, the upper and lower limits of a ParallelSelectionRule).
  * operation\_type: Boolean operation type (`intersect`, `add`, `remove`).

Example:

> > > boolean\_rule.add\_rule(rule=model.selection\_rules\[‘ParallelRule.1’],template\_rule=True, rule\_values=(-20.0, 50.0), operation\_type=’intersect’)
