I have this code to see if member_order_comments is blank or not.

{if '{member_order_comments}' != ''}

It works fine, unless there is a ' in the middle of member_order_comments, in which case I get a php error. I understand why the php error. I don't know the right way to check for an empty string when the string can have any format.

  • 1
    Is this a custom add-on?
    – Sobral
    May 22, 2014 at 1:24

1 Answer 1


I believe if you use:

{If your_field} something exists {/if}

This should display conditional content if the field contains anything at all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.