# Compare

Compares a set of operands between them using a logical operator. Useful for driving condition steps. Compare lives in the **Custom** category of the `fx` menu.

## Parameters

| Parameter         | Type   | Required | Default | Description                                                             |
| ----------------- | ------ | -------- | ------- | ----------------------------------------------------------------------- |
| Chaining Operator | string | yes      | `And`   | Logical operator used to combine terms (`And` or `Or`).                 |
| Terms             | array  | yes      | —       | List of comparison terms (operand A, operator, and optional operand B). |

## Returned value

| Type      | Description                           |
| --------- | ------------------------------------- |
| `boolean` | Result of the Compare transformation. |

## Example

<details>
<summary>Compare two values</summary>

Build one or more terms and combine them with And/Or to drive a condition step.

1. Set **Chaining Operator** to `And`.

2. Add a term: Operand A from a previous step, operator `Is equal to`, Operand B to the expected value.

3. Confirm **Output value** is `true` or `false`.

</details>
