# CASE: add reconciliation checks (red triangle/green dot)

**URL:** <https://community.silverfin.com/t/case-add-reconciliation-checks-red-triangle-green-dot/864>\
**Category:** Cases\
**Tags:** unreconciled, case\
**Created:** [May 7, 2018, 5:11pm UTC](https://community.silverfin.com/t/case-add-reconciliation-checks-red-triangle-green-dot/864 "2018-05-07T17:11:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [May 7, 2018, 5:11pm UTC](https://community.silverfin.com/t/case-add-reconciliation-checks-red-triangle-green-dot/864/1 "2018-05-07T17:11:48Z")

</div>

If you want to add reconciliation checks within your template (to check if an input object or more has been filled in for instance, or if a check or checks has been done), you can easily do so by the unexplained-tag:

_when a check is done_

```auto
{% if custom.some.thing == "true" %}
  {% assign ind = 0 %}
{% else %}
  {% assign ind = 1 %}
{% endif %}
{% unexplained ind as:indicator %}

```

will create a red triangle when the value of custom.some.thing is not “true” :  
 ![59](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/407a38a97a5e220a1250580cbd3b53b077afec14.png)

or give a green dot, when the value is actually “true”:  
 ![06](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/7b1ae458e9673bdd4fc6527352be2a7529c49965.png)

Let’s see how this is done:

```auto
{% if custom.some.thing == "true" %}
  {% assign ind = 0 %}
{% else %}
  {% assign ind = 1 %}
{% endif %} 

```

It comes down to basically create a variable ( = `ind` but you can call it whatever you like) and give the value 0 (zero) or something different than zero to it.

By using the unexplained-tag as:indicator, it’ll check whether or not the value of the variable is zero or not:

```auto
{% unexplained ind as:indicator %} 

```

When the value of the variable `ind` is zero, it’ll give a green dot. If not, a red triangle.

You can add as many as you like! your template will display a green dot, when the sum of all indicators is zero (so basically: if one indicator gives a red triangle, your template can never be green dot!).

_when an object is filled_

Same principle supplies, but use the check on whether the object is blank or not:

```auto
{% if custom.some.thing != blank %}
  {% assign ind = 0 %}
{% else %}
  {% assign ind = 1 %}
{% endif %}
{% unexplained ind as:indicator %}

```
