Query Regarding IF

I am using Webhook to Google sheet to lookup the data if lookup gives output something happens if lookups gives no data then something else should happen

I am using IF node but when data is found it works but when data is not found it does not work for other node Can anyone help what condition should I use in IF Node

Hey @chandan988,

So what you could do is set the If node to use a bool and add an expression and use…

{{$json["variable_name"]? true : false}}

That will then return true if your variable exists and false if it doesn’t.

Hope this helps :+1:

Where i have to put this expression

For value one, click the cogs then add expression.