My templates have a lot of code that needs to look and see if a field is empty or not, and I’m currently trying:
{if '{big-fat-field}' != ''"}{big-fat-field}{/if}and
{if big-fat-field != ''}{big-fat-field}{/if}
but if the “big-fat-field” has quoted test in it, the conditionals blow with a PHP error in the library/Functions.php eval process as the quotes are not getting converted. I see in the documentation that the quotes are supposed to auto-removed, but I’m not seeing that consistently happening. The tech note on that page suggests that “If you are testing against a word, you should enclose the word in single or double-quotes.” Should I do this with a string?
Alternatively, is there a plugin/feature that I could use that is closer to PHP’s empty or strlen that doesn’t care about string content?
Thanks for any help you can provide,
M.