# Handlebar expression evalution is causing issue

**URL:** <https://connective.celigo.com/t/handlebar-expression-evalution-is-causing-issue/6078>\
**Category:** Integrator.io\
**Tags:** filter, mapper, handlebars\
**Created:** [February 19, 2026, 8:36am UTC](https://connective.celigo.com/t/handlebar-expression-evalution-is-causing-issue/6078 "2026-02-19T08:36:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lakhan\_Bhagnani1](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@Lakhan\_Bhagnani1](https://connective.celigo.com/u/Lakhan_Bhagnani1)\
**Post date:** [February 19, 2026, 8:36am UTC](https://connective.celigo.com/t/handlebar-expression-evalution-is-causing-issue/6078/1 "2026-02-19T08:36:14Z")

</div>

I have integration from Salesforce to Salesforce, we have created a lookup for account I have used the below handlerbar if account exists it will return Id or else the response will be empty.  
`{{#if data.0.Id}}{{#compare data.0.Id '!=' null}}{{data.0.Id}}{{else}}null{{/compare}}{{else}}null{{/if}}`

the handlebar evalutes to “null”(string null value)

In the next step, I have to do check whether the the value is “null” or not then don’t do anything, which I think should be scenario if I could use discard if empty.

---

<div class="post-metadata">

**Author:** ![Matthew\_Lacey](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Matthew\_Lacey](https://connective.celigo.com/u/Matthew_Lacey)\
**Post date:** [February 19, 2026, 8:46am UTC](https://connective.celigo.com/t/handlebar-expression-evalution-is-causing-issue/6078/2 "2026-02-19T08:46:59Z")

</div>

Hi Lakhan,

I think you can just use no data in place of the ‘null’ like this;

{{#if data.0.Id}}{{#compare data.0.Id '!=' null}}{{data.0.Id}}{{else}}{{/compare}}{{else}}{{/if}}

I could be wrong though!

---

<div class="post-metadata">

**Author:** ![Lakhan\_Bhagnani1](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@Lakhan\_Bhagnani1](https://connective.celigo.com/u/Lakhan_Bhagnani1)\
**Post date:** [February 19, 2026, 12:32pm UTC](https://connective.celigo.com/t/handlebar-expression-evalution-is-causing-issue/6078/3 "2026-02-19T12:32:01Z")

</div>

Hey Matthew Lacey,

Bingo! I have has the same thought process but it did not work, the attribute itself did not pop up in the data.
