I have a workflow that looks like this:
As you can see, there are two potential triggers for it. In the HTTP request node, I need to change a parameter based on data from either the webhook or the date & time node.
My current solution that works is using an inline if/then statement to return nothing if the variable doesn’t exist like so:
{{ data ? data : “” }}
But what I really wanted to do is:
{{ data_source_1 ? data_source_1 : data_source_2 }}
This is a more elegant solution, but I found that it didn’t work. The path that wasn’t executed was not treated as a false boolean, it just returned “not found”.
Here’s the relevant part of the workflow: