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
-------------------------------------------------------
Subject Author Views Date
Thread [HELP] :: If - Elseif Question VishalT 1729 Nov 5, 2007, 10:32 PM
Thread Re: [SWDevil.Com] [HELP] :: If - Elseif Question
neves 1661 Nov 5, 2007, 11:33 PM
Post Re: [neves] [HELP] :: If - Elseif Question
VishalT 1651 Nov 6, 2007, 1:30 AM