Support » Plugin: Custom Content Shortcode » field if empty

  • Hi I try run this function

    [if field=displayname value=empty]No Name[/if]

    but is no working. did i correct do “value=empty” ? tnx

Viewing 2 replies - 1 through 2 (of 2 total)
  • It sounds like you’re trying to display the text “No Name” when the field “displayname” is empty (or are you actually storing the string “empty” in the field “displayname”?)

    Anyhow, if I’m understanding you correctly, I think what you want is:
    `[if field=display][else]No name[/if]

    That would display the text “No Name” if the field “displayname” had no value assigned, otherwise it would do nothing.

    oh– yeap i try first option, and i totally forget about else loop – tnx.
    `[if field=display][else]No name[/if]

    working!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.