# Like

Learn how to check if a string matches another.

This operator checks if one string is equal to another string or contains it.

The operator is case-insensitive, meaning that the strings match regardless of capitalization. For example, `"Hello world"` evaluates to true when compared with `"LO WO"`.

## Syntax

The basic syntax is:

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

The negation of this operation can be expressed as:

```cql
with /*<name>*/ not like /*<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`

  A value to check if the string matches.

## Examples

Check if a product with a name containing a specific term was abandoned:

```cql
user has abandoned a product with name like "smart"
```

Or to check the opposite:

```cql
user has abandoned a product with productName not like "smart"
```
