I just noticed this, on a template I'm working on:
I have a TV "[image-credits]" to show the credits of the main image of the article, when necessary:
[[if? &is=`[*image-credits*]:!empty` &then=`<div class="imgcredits text-right small mt-n5 mb-4"><em>[*image-credits*]</em></div>`]]
- if the TV [image-credits] contains just plain text (ie:. photo by John Smith), the notempty field is correctly recognized
- if the TV [image-credits] contains some html code (ie:. <a href="https://domain.com" target="_blank">photo by John Smith</a>), the notempty field is not recognized
solved with the usual work around:
[[if? &is=`[*image-credits*]:empty` &then=`` &else=`<div class="imgcredits text-right small mt-n5 mb-4"><em>[*image-credits*]</em></div>`]]