# Ending with

Learn how to check if a string ends with a specific suffix.

This operator checks if a string finishes with another string. This test is case-sensitive, so both the letters and their case must match exactly.

> **Multi-condition criteria**
>
> You can [combine conditions](/reference/cql/expressions/events/criteria/overview#multi-condition-criteria) to create more advanced criteria.

## Syntax

The basic syntax is:

```cql
with /*<name>*/ ending with /*<value>*/
```

The negation of this operation can be expressed as:

```cql
with /*<name>*/ not ending with /*<value>*/
```

## Parameters

These are the supported parameters:

- `name`: `string`

  The name of the [event property](/reference/cql/expressions/events/event-types) to check.

- `value`: `string`

  The string value to compare against.

## Examples

Check if a campaign name ends with a specific term:

```cql
user has viewed campaign with name ending with "Pro"
```

Or to check the opposite:

```cql
user has viewed campaign with name not ending with "Pro"
```
