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.

if Statement Help

March 20, 2012 12:40pm

Subscribe [2]
  • #1 / Mar 20, 2012 12:40pm

    nickDMC

    3 posts

    I’m needing some help with an if statement.

    Have a form set up that passes it’s info to an entry. There is a field to enter a web address that is pre filled with “http://”. If they do not enter anything, the http:// gets passed to the channel field and is displayed.

    I’m wanting to set up an if statement where if the filed is = to http:// it will not display. I know the statement should begin
    {if app_website != "http://"}, but I am not sure how to make it not display.

    Thanks in advance for any help.

  • #2 / Mar 20, 2012 3:23pm

    nickDMC

    3 posts

    Figured it our. Had the wrong if statement. Should have been {if app_website == “http://”}{ifelse}{app_website}{/if}

  • #3 / Mar 22, 2012 8:28am

    Man With A Peg

    124 posts

    You were on the right track. {if '{app_website}’ != ‘http://’} should work.

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

ExpressionEngine News!

#eecms, #events, #releases