ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Template question with conditionals and quotes (issue?)

August 29, 2012 11:09am

Subscribe [3]
  • #1 / Aug 29, 2012 11:09am

    GDmac - expocom

    350 posts

    Hello tech support,

    Is there a difference between using single quotes and double quotes in conditionals?
    The first example shows all options, the second, with double quotes around {status}, shows the correct option.
    Can someone verify this?

    {if 'open'=='{status}'} OPEN {/if}
    {if 'closed'=='{status}'} CLOSED {/if}
    {if 'preview'=='{status}'} PREVIEW {/if}
    
    {if 'open'=="{status}"} OPEN {/if}
    {if 'closed'=="{status}"} CLOSED {/if}
    {if 'preview'=="{status}"} PREVIEW {/if}
  • #2 / Aug 29, 2012 11:32am

    Kurt Deutscher

    827 posts

    It’s a bug in the current EE: https://support.ellislab.com/bugs/detail/18146

  • #3 / Aug 30, 2012 1:10pm

    Shane Eckert

    7174 posts

    Hey GDmac - expocom,

    Thank you for posting your question here on the ExpressionEngine forums.

    Kurt is right!

    Is there anything else I can help you with?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases