# Rule Types

Nected provides a comprehensive suite of rule types designed to handle various business logic scenarios, from simple conditional statements to complex decision-making processes. Each rule type serves specific use cases and offers unique capabilities to help you implement your business logic effectively.

### Supported Rule Types

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Simple Rule</strong></td><td>A straightforward if/then/else statement-based rule that provides an intuitive way to implement basic conditional logic. </td><td><a href="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2FYocbPfBvkVRnhotmCUjz%2FSimpleRule.png?alt=media&#x26;token=e7c96bb1-5633-4820-8ec7-7dc3faf51674">SimpleRule.png</a></td><td><a href="rule-types/simplerule">simplerule</a></td></tr><tr><td><strong>Decision Table</strong></td><td>A structured table format that maps multiple conditions to corresponding outcomes and actions. </td><td><a href="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2FGzIC21yZMotMnYJZIcEb%2FDT.png?alt=media&#x26;token=d3d63ae9-ac36-40b2-b000-14533567d1b6">DT.png</a></td><td><a href="rule-types/decisiontable">decisiontable</a></td></tr><tr><td><strong>RuleSet</strong></td><td>A collection of predefined rules that work in concert to evaluate complex scenarios and determine appropriate actions. </td><td><a href="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2Fwgqt0HLn4ewSdSZatoj5%2FRS.png?alt=media&#x26;token=6e20c84c-899d-4f5c-8ed5-6839a37531ac">RS.png</a></td><td><a href="rule-types/ruleset">ruleset</a></td></tr><tr><td><strong>Rule Chain</strong></td><td>A sequential execution framework that connects multiple rules in a defined order, where the output of one rule can serve as input for subsequent rules. </td><td><a href="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2F9kKUhSAmQq1GrISlvlPs%2Fchain.png?alt=media&#x26;token=bb4448a5-fc18-425b-8bd6-fd3fbf576297">chain.png</a></td><td><a href="rule-types/rule-chain">rule-chain</a></td></tr><tr><td><strong>Decision Tree</strong></td><td>A hierarchical, branching structure that creates visual decision paths through nested conditions. </td><td><a href="https://4290782554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLg716fCfV8IUwXQygkTG%2Fuploads%2FuTf2xUTzwGoHJsL9daCp%2FDecision%20tree.png?alt=media&#x26;token=ce9a9aba-fe30-4057-be52-cab7e307b5b0">Decision tree.png</a></td><td><a href="rule-types/decision-tree">decision-tree</a></td></tr></tbody></table>

### Choosing the Right Rule Type

Selecting the appropriate rule type depends on your specific requirements:

| Scenario                                                    | Recommended Rule Type |
| ----------------------------------------------------------- | --------------------- |
| Single condition with simple outcome                        | SimpleRule            |
| Multiple conditions with various outcomes in tabular format | DecisionTable         |
| Hierarchical decisions with branching paths                 | DecisionTree          |
| Collection of related rules executed together               | Ruleset               |
| Sequential processing with dependencies                     | RuleChain             |
