We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

{if:elseif} conditionals

Development and Programming

OnesInALifetime1111's avatar
OnesInALifetime1111
26 posts
14 years ago
OnesInALifetime1111's avatar OnesInALifetime1111

Hey guys … I am having some trouble with this conditional statement. Does anyone see where the discrepancy is? Am I not allowed to have more than one {if:elseif} ?

{if group_id == "3"}

 <a href="/join/">Tell us where <em>your</em> party is!</a>


{if:elseif group_id == "5"}

 <a href="/profile/">Tell us where <em>your</em> party is!</a>


{if:elseif group_id == "6"}

 <a href="/business/build/">Tell us where <em>your</em> party is!</a>


{if:elseif group_id == "7"}

 <a href="/business/build2/">Tell us where <em>your</em> party is!</a>

{/if}

Thanks guys!

       
OnesInALifetime1111's avatar
OnesInALifetime1111
26 posts
14 years ago
OnesInALifetime1111's avatar OnesInALifetime1111

I also tried

{if group_id == "3"}

 <a href="/join/">Tell us where <em>your</em> party is!</a>

{/if}

{if group_id == "5"}

 <a href="/profile/">Tell us where <em>your</em> party is!</a>

{/if}

{if group_id == "6"}

 <a href="/business/build/">Tell us where <em>your</em> party is!</a>

{/if}

{if group_id == "7"}

 <a href="/business/build2/">Tell us where <em>your</em> party is!</a>

{/if}

None of the links show, is this a correct way of using these conditionals?

       
OnesInALifetime1111's avatar
OnesInALifetime1111
26 posts
14 years ago
OnesInALifetime1111's avatar OnesInALifetime1111

I figured it out …. I am the ADMIN which is group_id “1”.. So I was not seeing the result. This can be closed! 😊

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.