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

# The Rule Engine

> Build conditional logic to transform and validate data.

The **Rule Engine** is one of the most powerful features of Galantis Connect. It allows you to build complex logic to transform your data.

## Creating a Rule

1. Navigate to the **Master Rules** section.
2. Click **Add Rule**.
3. Enter a rule name and description.
4. Select the **Entity Type**:
   * Product
   * Order
   * Customer

## Conditions

Conditions define **when** a rule should be applied.

A condition consists of:

* Project Field
* Operator (equals, contains, greater than, etc.)
* Value

Multiple conditions can be combined using:

* AND
* OR

## Actions

Actions define **what happens** when conditions are met.

An action consists of:

* Action Type (Set Field Value, Copy From Field, Replace Text, etc.)

Depending on the action, you may need:

* A Project Field
* A Value
* Additional parameters

## Example Rule

```text theme={null}
IF country equals "USA"
THEN set shipping_cost to "10"
```
