Thomas Venugopal
Do you really think that I come up with this without reading the docs? 😁 I read it for hours exploring a new syntax you created and changed for Joomla 4 again. And after reading, you have to do it and understand it. That's a lot of time. As a customer you have to learn a whole new syntax to use your product, that's the reason why we bought a full bundle license to get support if we have questions.
I really only ask a question when I don't understand something or couldn't find an article where I could imagine that it fits my needs. I really appreciate your answers, and often the link to the right doc helps. Additionally, sometimes we encounter bugs and until we get an answer it's not clear if we should invest time in something if it's not clear if it's a bug and or a mistake on our side. That's the reason why I ask in this case.
In this case, I tried everything you provided, but it does not work for me. For example, it's not clear why the tag does work with the multiple article field but not with the single article field, as mentioned above. And the question regarding performance is unanswered, too.
Anyway, I tried this:
{articles id="this:c-ba"}{if badge:value}[badge]{else}<img src="/badge.png" />{/if}{/articles}
But it returns no fallback, when the custom field c-ba is empty. When a valid value is available, it works. So basically only the fallback doesn't work.