# If Equal To (v1)

{% hint style="info" %}
**if\_eq**
{% endhint %}

Sometimes you want to only show certain content if something is equal to a certain value when retrieving the data from a system.&#x20;

In the following example we have a rule that says:

* Go through **each** of the rows in a collection classed as property charges transactions.&#x20;
* IF the type of transaction in the collection is equal to ‘Charge’ then show the text Disabled Band Relief and the amount of the transaction.&#x20;

\{{**#each** CurrentRevenueAccount.Transactions.PropertyCharges.Items\}}

&#x20;\{{**if\_eq** Description _**'Disabled'**_\}}

&#x20;Disabled Band Relief - £\{{Amount\}}

&#x20;\{{/if\_eq\}}&#x20;

\{{/each\}}&#x20;

We can see this uses the **if\_eq** option.

In the above example the Civica back-office system only gave the word ‘Disabled’ for the transaction description, which was felt too poor to be clearly understood.&#x20;

Therefore in this case the conditional content was designed to detect a specific transaction type and replace the label sent by the back office with a better one.

{% hint style="info" %}
You can use if\_eq to reword data from the back office if it is jargon filled/not conducive to being easily understood
{% endhint %}

The description from the back office was not what the council wanted and so we checked for any items with the name Disabled and replaced it with the word Disabled Band relief.
