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.

Conditional Trouble

October 24, 2011 3:05am

Subscribe [2]
  • #1 / Oct 24, 2011 3:05am

    Hi. I cant work out how to do this conditional.

    Can anyone see what I am doing wrong?

    Thanks
    Chris

    {if 'option_value format="%F"' != 'workshop_end format="%F"'}{option_value format="%d %F"} - {workshop_end format="%d %F %Y"}
        
    {if:else 'option_value format="%F"' == 'workshop_end format="%F"'}{option_value format="d"} - {workshop_end format="%d %F %Y"}
            
    {/if}
  • #2 / Oct 24, 2011 3:50am

    ahmad saad

    364 posts

    try put {} around the name like this {option_value format="%F"} {workshop_end format="%F"}

    and see if it helps.

  • #3 / Oct 24, 2011 3:52am

    Thanks Ahmad. Looks like it did the job!

    😊

  • #4 / Oct 24, 2011 4:33am

    ahmad saad

    364 posts

    welcome

  • #5 / Oct 24, 2011 12:17pm

    Mark Bowen

    12637 posts

    Hi Chris,

    Glad that Ahmad was able to get you sorted there.

    If anything else crops up then please don’t hesitate to post again as needed.

    Thanks,

    Mark


    P.S. Thanks for the help there Ahmad!

  • #6 / Oct 24, 2011 12:18pm

    Mark Bowen

    12637 posts

    Sorry, closing.

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

ExpressionEngine News!

#eecms, #events, #releases