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

# Rule Node

The Rule Node in Refold enables users to define conditions that must be met for further execution within a workflow. By adding rule nodes along with start nodes and app nodes, users can add conditional logic that executes different paths.

## Node Functionality

Rule node acts as a method to create conditional brances in the workflow. It:

* Evaluates the conditions;
* Creates two possible paths based on conditions (true/false); &
* Routes the data according to conditions;

## Steps to use Rule Node

To utilize the Rule Node effectively, follow these steps:

<Steps>
  <Step title="Create Workflow">
    Begin by navigating to the respective app and creating a new workflow. Add an event and publish the workflow to make it operational.

    <Tip>Learn more about Workflows [here](https://docs.gocobalt.io/build/workflow/overview).</Tip>
  </Step>

  <Step title=" Add Rule ">
    Within the workflow, add a rule node as per your requirement along with other nodes to define the workflow flow.
  </Step>

  <Step title="Define Rule Condition">
    Configure the rule node by selecting the appropriate rule condition. First, select the `Condition Rule` for the node which can either be **Match Any Condition** or **Match All Conditions**.

    In `Compare Values of`, click on `+ Map Fields` and specify the **variable**, **operator** and **value** for the condition.

    <Info>Multiple Conditions can be applied in a single node by clicking on `+ Map Fields` button.</Info>

    The Rule Node offers various Operators or Conditions which you can use based on your requirement.
  </Step>
</Steps>

<img height="200" src="https://mintcdn.com/cobalt-55/lcADCqUGrbz-iIZQ/images/Guides/Workflow/rule-node.png?fit=max&auto=format&n=lcADCqUGrbz-iIZQ&q=85&s=5799f2351b38552b7a84667cf453dd57" alt="Rule Node in Refold" data-path="images/Guides/Workflow/rule-node.png" />

If the specified rule condition is met during execution, the actions to be performed should now be added to the left node connect of Rule node which is for `True` otherwise connect to the right end.

<img height="200" src="https://mintcdn.com/cobalt-55/lcADCqUGrbz-iIZQ/images/Guides/Workflow/rule_condition.png?fit=max&auto=format&n=lcADCqUGrbz-iIZQ&q=85&s=1422b865cc8de4927ab24cbc87d8e2e9" alt="Rule Node Condition status in Refold" data-path="images/Guides/Workflow/rule_condition.png" />
