# == operator

Source: https://ref.dm-lang.org/operator/equalsequals

### Format
> `A == B`

### Returns
> 1 if A and B are equal; 0 otherwise

Note that this is not the same as the assignment operator (=), which sets A equal to B.

To check if A and B are equivalent, use the \~= operator.

### See also
- [!= operator](https://ref.dm-lang.org/operator/exclaimequals.md)
- [\>= operator](https://ref.dm-lang.org/operator/greaterequals.md)
- [\<= operator](https://ref.dm-lang.org/operator/lessequals.md)
- [\<=\> operator](https://ref.dm-lang.org/operator/lessequalsgreater.md)
- [\~= operator](https://ref.dm-lang.org/operator/tildeequals.md)
- [\~! operator](https://ref.dm-lang.org/operator/tildeexclaim.md)
- [operators](https://ref.dm-lang.org/operator/index.md)
