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 Statement

July 13, 2010 11:12am

Subscribe [2]
  • #1 / Jul 13, 2010 11:12am

    wireframe

    24 posts

    Hi I have a conditional statement that I am hoping to use for a landing page which reveals prices for course(s). There are full prices, 4mth payment plan priecs and also 10mth payment plan prices..There aren’t 10mth payment plan prices however for all courses.

    Here is a link to the page in question:

    http://www.aawep.com.au/courses/courses-index-test/


    What I need to know is how to I use a conditional which will only reveal a segment of code if a custom field (input) is filled out.

    I checked out the docs and this is what I came up with..Advice appreciated as this doesnt work at present:

    {if ten-mth-price == ' '} 
    
    {if:else}
    
    <strong>10 Month Plan:</strong> ${ten-mth-price}+ GST 
    
    {/if}
  • #2 / Jul 13, 2010 11:20am

    wireframe

    24 posts

    Actually got it sorted..used double quotes and removed the space in between quotes..It now works 😊 Post can be closed..thx

  • #3 / Jul 13, 2010 3:46pm

    Ingmar

    29245 posts

    Glad to see you’re all set 😊 Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases