# equals

Source: https://taxilang.org/docs/language/stdlib/equals

**Full name:** `taxi.stdlib.equals`

## Signature

```taxi
declare extension function <A,B> equals(a:A, b:B): Boolean
```

## Description

Returns `true` if two values are equal. Equality is checked by value and type — values of different semantic types are not equal even if their underlying values match.

```taxi
find {
   match: Boolean = OrderStatus.equals("PENDING")
}
```

## Examples

Compares two string values — matching pair returns true, non-matching returns false.

Query:

```taxi
find {
   same: Boolean = "hello".equals("hello")
   different: Boolean = "hello".equals("world")
}
```

Result:

```json
{
  "same": true,
  "different": false
}
```
