# QRY_Condition.Nestable

**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 interface QRY_Condition.Nestable implements QRY_Condition.Evaluable
```

**Implements:** [QRY_Condition.Evaluable](/reference/apex/qry-condition-evaluable)

**Known Derived Types:** [QRY_Condition.AndCondition.add(QRY_Condition.Evaluable)](/reference/apex/qry-condition-andcondition#add), [QRY_Condition.OrCondition.add(QRY_Condition.Evaluable)](/reference/apex/qry-condition-orcondition#add)

Interface for condition containers that support adding nested conditions. Extends Evaluable so groups can be passed to QRY_Builder.addCondition().

</div>

---

## Methods

| Method | Description |
|--------|-------------|
| global abstract [QRY_Condition.Nestable](/reference/apex/qry-condition-nestable) [add](#add)([QRY_Condition.Evaluable](/reference/apex/qry-condition-evaluable) condition) | Adds a condition to this group. |

### add

<div class="apex-member">

```apex
global abstract QRY_Condition.Nestable add(QRY_Condition.Evaluable condition)
```

Adds a condition to this group.

**Parameters**

| Parameter | Type | Description |
|-----------|------|-------------|
| `condition` | [QRY_Condition.Evaluable](/reference/apex/qry-condition-evaluable) | The condition to add. |

**Returns** [QRY_Condition.Nestable](/reference/apex/qry-condition-nestable) — The updated Nestable with the new condition added.

</div>
