---
title: "== · RUAL Documentation"
description: "returns true if the two values are equal."
canonical: https://docs.rual.nl/block-types/condition/condition_equal
language: en
---

# ==

This block is part of the [`condition`](https://docs.rual.nl/block-types/condition) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

returns true if the two values are equal.

- compare required `value`

- to required `value`

- condition `condition`

Coerces BOTH inputs to strings before comparing, so 1 equals "1" and true equals "true"; the resulting string comparison is exact and case-sensitive. A wired null becomes "null", a missing pin "" (two unwired pins compare equal). Arrays join with commas; any two plain objects both become "[object Object]" and therefore always compare EQUAL. Legacy actions carrying number_1/number_2 pins compare those two values strictly instead, without string coercion.

| `equal` |
| --- |
| `singleequal` |
| `deepequal` |

The [==](https://docs.rual.nl/block-types/condition/condition_equal) block compares two values and outputs true when they match exactly. Here a role value is compared against the fixed text in a [value](https://docs.rual.nl/block-types/value/value_default) block, and the result drives a [branch](https://docs.rual.nl/block-types/flow/branch). The compare pin would come from live data in a real blueprint, the to pin is the expected value.

![Studio canvas example for the == block: comparing a value with ==.](https://docs.rual.nl/canvas-examples/condition_equal.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple): feeds into this block. Gets the selected fields from the given object.

- [value](https://docs.rual.nl/block-types/value/value_default): feeds into this block. Simply returns the provided value.

- [OR](https://docs.rual.nl/block-types/condition/condition_or): this block feeds into it. operator for a set of operands is true if and only if one or more of its operands is true.

- [AND](https://docs.rual.nl/block-types/condition/condition_and): this block feeds into it. operator for a set of boolean operands will be true if and only if all the operands are true.

- [branch](https://docs.rual.nl/block-types/flow/branch): this block feeds into it.

- [get guid](https://docs.rual.nl/block-types/users/user_get_guid): feeds into this block. Returns the guid (field: _meta.guid) of the given user.

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
