0

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? – Robson Sobral May 22 '14 at 1:24
4

I believe if you use:

{If your_field} something exists {/if}

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

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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