> This page is for Docs.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://zuora.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://zuora.ferndocs.com/_mcp/server.

# Examples of conditions for common use cases

> Provides examples and explanations of conditions for common use cases.

Provides examples and explanations of conditions for common use cases.

## Conditions with the AND operator

![example - AND operator](/_fern-img/66edbd4d362306c1b4b18002d81b7f4b354f06c589af35643dc9e1cfe87a11bd.webp)

The conditions defined in the figure are equal to the following JEXL expression:

`changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000.0`

It is triggered when an invoice is posted with an amount greater than 1000.

## Conditions for multiple change types

![example - multiple change types](/_fern-img/f3744870da66f5368a7840b6632f9613b74376acb9de410439d3dbad61f4f777.webp)

The conditions defined in the figure are equal to the following JEXL expression:

`changeType == 'INSERT' || changeType == 'UPDATE'`

It is triggered when a record of the base object is created or updated.

## Conditions for custom objects

![example - custom object](/_fern-img/768f24d34570042bb767445f0abea6a33cf8ab916ce3930599760aab7e32e64a.webp)

The conditions defined in the figure are equal to the following JEXL expression:

`changeType == 'UPDATE' && default__entitlement.Usage__c >= default__entitlement.Entitled__c && default__entitlement.Status != 'Trial'`

It is triggered when an entitlement record is updated if the usage equals to or greater than the entitlement and the entitlement status is not trial.

## Conditions and groups

![example - groups](/_fern-img/b0e55d33b4cc7f73956165ae050f6921ea1e8456c995a7def23352fad333b6a3.webp)

The conditions defined in the figure are equal to the following JEXL expression:

`changeType == 'UPDATE' && (Invoice.Status == 'Draft' || Invoice.Status == 'Posted') && (Invoice.Amount < 20.0 || Invoice.Amount > 1000.0)`

It is triggered when an invoice of Draft or Posted status is updated with an amount less than 20 or greater than 1000.

## Groups and sub-groups

![example - subgroup](/_fern-img/19f6caeb1c34c36b91d1cb8e3b20b25a03eac68f754661b9ecc26efa0b58f056.webp)

The conditions defined in the figure are equal to the following JEXL expression:

`changeType == 'UPDATE' && (default__entitlements.Status__c == 'Trial' || (default__entitlements.Usage__c < default__entitlements.Entitled__c && default__entitlements.Usage__c > 10.0))`

It is triggered when an entitlement record is updated and the entitlement status is trial, or the usage is less than the entitled value and greater than 10.