Gossamer Forum
Home : Products : Gossamer Links : Discussions :

[HELP] :: If - Elseif Question

Quote Reply
[HELP] :: If - Elseif Question
I am trying to edit a template and am having a question with if/elseif condition and would really appreciate if someone know how to fix it.

User Profile has below tables/fields:

Address
City
State
Zip

Now what I am wanting to do is, to make sure that user has all 4 fields in their profile before they are able to add new listing.

I am not really aware of detailed use of if/else if statements, so I tried using below code but seems like I am not doing it right.

<%if Address%>
<%elsif City%>
<%elsif State%>
<%elsif Zip%>
<%else%>
Links to add new listings.
<%endif%>

I also tried using
<%unless 'Address' & 'City' & Zip'%>Links to add new listings<%else%>Please fill in your profile completely<%endif%>


But it don't seem to be working.

Any Ideas?

Vishal
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] [HELP] :: If - Elseif Question In reply to
Hi,

<%if Address and City and Zip and State%>Links to add new listings<%else%>Please fill in your profile completely<%endif%>

Regards

Merten
Quote Reply
Re: [neves] [HELP] :: If - Elseif Question In reply to
Hi Merten,

Perfect - thanks a lot for the help :) :)

Vishal
-------------------------------------------------------