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

# Conditions Overview

> Build reusable eligibility and pricing logic in fusionCore and attach it to price books, tax products, and renewal paths.

## Overview

A **Condition** (`Condition__c`) is a reusable rule that fusionCore evaluates at sale time to decide whether something applies. You build the logic once, then attach the Condition to a **Price Book**, a **tax product**, or a **Renewal Path** so that fusionCore turns the related pricing, tax, or renewal behavior on or off based on the order and the customer.

<Note>
  These are *not* Salesforce flow, Process Builder, or report filter conditions. A fusionCore Condition is a custom pricing-and-eligibility record that the commerce engine reads when it prices an order, applies tax, or chooses a renewal path.
</Note>

**What a Condition can express**

A Condition combines one or more **Condition Lines**, each a single test. Together they let you say things like:

* *This price book only applies to members in California who already own the Annual Membership.*
* *Apply this tax only when the order ships to a taxable state.*
* *Send this account down a specific renewal path.*

## Where Conditions Are Used

Once a Condition exists, you attach it through a **Condition** lookup field on the consuming record:

| Attach a Condition to                   | What it controls                                     |
| --------------------------------------- | ---------------------------------------------------- |
| A **Price Book** (`Pricebook2`)         | Whether that price book's prices apply to the order. |
| A **tax product** (a `Product2` record) | Whether that tax is applied.                         |
| A **Renewal Path** (`Renewal_Path__c`)  | Whether that renewal path is selected.               |

## Condition Types

When you create a Condition, you choose a record type — **Simple** or **Apex**.

| Feature         | Simple Conditions                             | Apex Conditions                         |
| --------------- | --------------------------------------------- | --------------------------------------- |
| **Built by**    | Admins or standard users in the Salesforce UI | A developer, in Apex code               |
| **Logic**       | Condition Lines (no code)                     | A custom Apex class                     |
| **Best for**    | Field-based eligibility and pricing rules     | Complex, multi-record, or dynamic logic |
| **Maintenance** | Changed through the UI                        | Requires a developer to change          |

<CardGroup cols={2}>
  <Card title="Creating a Condition" icon="plus" href="/end-user-guides/products/conditions/creating-a-condition" arrow="true">
    Create a Condition record and choose whether it is Simple or Apex. Start here.
  </Card>

  <Card title="Simple Conditions" icon="sliders" href="/end-user-guides/products/conditions/simple-conditions/index" arrow="true">
    Build no-code logic from Condition Lines for the common eligibility and pricing cases.
  </Card>

  <Card title="Apex Conditions" icon="code" href="/end-user-guides/products/conditions/apex-conditions" arrow="true">
    Delegate complex logic to a custom Apex class for advanced scenarios.
  </Card>
</CardGroup>
