# Equal to

Learn how to check if a property is equal a value.

This operator checks whether an event property is equal to a given value.

> **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 for this operator is:

```cql
with /*<name>*/ equal to /*<value>*/
```

You can omit the `equal to` part for brevity:

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

The negation of this operation can be expressed as:

```cql
with /*<name>*/ not equal to /*<value>*/
```

You can also use the symbolic notation:

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

And for negation, you can use:

```cql
with /*<name>*/ != /*<value>*/
```

## Parameters

These are the supported parameters:

- `name`: `any`

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

- `value`: `any`

  The value to compare against.

## Examples

Check if a product with a specific display price was abandoned:

```cql
user has abandoned a product with displayPrice equal to 100
```

Or to check the opposite:

```cql
user has abandoned a product with displayPrice not equal to 100
```

Check if a campaign with a given term was viewed:

```cql
user has viewed campaign with term equal to "running shoes"
```
