How to validate a field without complicating?

I have a loop that sometimes I have DATA in a specific variable but sometimes I don’t.


Wondering if there is a simple way to make an IF statement inside an expression? and if empty print something like a string -not found-

Welcome to the community @igcorreia.

If I understand you correctly the following should work:

{{ $json["parameterName"] ? $json["parameterName"] : '-not found-' }}
1 Like

Yes, Yes and Yes! Are there any docs regarding this?

That is plain old JavaScript, so you should find things like that on Google. Apart from that did we start to collect some example snippets here:

1 Like