# QRY_Condition

**Class** · Group: `Query Infrastructure`

Learn it: [Fast Start - Selectors](/fast-start-selectors) and [Selectors guide](/selectors-guide)

<div class="apex-member apex-class">

```apex
global inherited sharing class QRY_Condition
```

Condition infrastructure for building complex SOQL WHERE clauses.
Use these classes with QRY_Builder.addCondition() for compound conditions
that cannot be expressed with the fluent API alone (e.g., grouped OR conditions).

**VISIBILITY**: `global` so your code can use it.

    - Evaluable interface: base type for all conditions

    - Operator enum and constants: comparison operators

    - FieldCondition: field comparisons (=, !=, <, >, LIKE, etc.)

    - OrCondition/AndCondition: grouping conditions

**Example**

```apex
QRY_Condition.OrCondition condition = new QRY_Condition.OrCondition();
condition.add(new QRY_Condition.FieldCondition(Account.Industry, QRY_Condition.Operator.EQUALS, 'Technology'));
condition.add(new QRY_Condition.FieldCondition(Account.Name).contains('Acme'));
List<Account> accounts = QRY_Builder.selectFrom(Account.SObjectType)
    .addCondition(condition)
    .toList();
```

**See Also:** [QRY_Builder](/reference/apex/qry-builder)

</div>

---

## Inner Classes

| Class | Description |
|-------|-------------|
| [AndCondition](/reference/apex/qry-condition-andcondition) | Represents a SOQL "AND" condition group. |
| [DateLiteral](/reference/apex/qry-condition-dateliteral) | Provides SOQL date literal values for use in QRY_Builder conditions. |
| [Evaluable](/reference/apex/qry-condition-evaluable) | Interface for condition classes. |
| [FieldCondition](/reference/apex/qry-condition-fieldcondition) | Represents a condition in a SOQL WHERE clause based on a specific field, operator, and value. |
| [Nestable](/reference/apex/qry-condition-nestable) | Interface for condition containers that support adding nested conditions. |
| [Operator](/reference/apex/qry-condition-operator) | SOQL comparison operators used to build query conditions. |
| [OrCondition](/reference/apex/qry-condition-orcondition) | Represents a SOQL "OR" condition group. |
| [SoqlOptions](/reference/apex/qry-condition-soqloptions) | Options for SOQL generation. |
| [UnitOfTime](/reference/apex/qry-condition-unitoftime) | Units of time for SOQL date literals. |
