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.