    

 ## On this page

  

 

 # create\_boolean\_selection\_rule

 Last update: 16.07.2026 

<a id="compolyx.Model.create_boolean_selection_rule"></a>

## Model.create\_boolean\_selection\_rule(name, id=None, include\_rule\_type=True, selection\_rules=\[\])

Create a new boolean selection rule.

### Parameters

- name: Name of the rule.
- id: ID of the rule.
- include\_rule\_type: Whether the rule is of include or exclude type.
- selection\_rules: list of tuples of attached rules, operation type, and template parameters.

### Returns

The created boolean selection rule.

### Example

> > model.create\_boolean\_selection\_rule(‘Boolean Rule 1’, include\_rule\_type=True, selection\_rules=\[(rule1, ‘intersect’, False, (0,1)), (rule2, ‘remove’, True, (20, 4))\])