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.

Need an if statement help.

August 24, 2007 1:48pm

Subscribe [2]
  • #1 / Aug 24, 2007 1:48pm

    insomnie

    56 posts

    I need help making a statement that would show

    {body}
    tag in case the
    {summary}

    is missing.

  • #2 / Aug 24, 2007 7:26pm

    e-man

    1816 posts

    {exp:weblog:entries weblog="weblog1"}
    {if summary==""}
    {body}
    {/if}
    {/exp:weblog:entries}

    should do the trick. You can find all about conditionals in the docs.

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

ExpressionEngine News!

#eecms, #events, #releases