Gossamer Forum
Home : Products : Gossamer Links : Discussions :

simple if question

Quote Reply
simple if question
HI!

Is it possible to do a negative if?

<%ifnot $Username%> <a href="<%db_cgi_url%>/user.cgi?signup_form=1"> Signup</a>
<%if LinkOwner eq $Username%>
<a href="<%db_cgi_url%>/modify.cgi?LinkID=<%ID%>"> Edit this link</a>
<%elsif LinkOwner eq 'admin'%>
<a href="<%db_cgi_url%>/modify.cgi?do=claim;ID=<%ID%>">Claim Link</a>
<%else%>
Link Owner: <a href="<%build_root_url%>/users/profiles/<%GT::CGI::escape( $LinkOwner )%>.html"><%LinkOwner%></a>
<%endif%>

or should it be:

<%if LinkOwner eq $Username%>
<a href="<%db_cgi_url%>/modify.cgi?LinkID=<%ID%>"> Edit this link</a>
<%elsif LinkOwner eq 'admin'%>
<a href="<%db_cgi_url%>/modify.cgi?do=claim;ID=<%ID%>">Claim Link</a>
<%elseif $Username ne $LinkOwner or 'admin'%>
Link Owner: <a href="<%build_root_url%>/users/profiles/<%GT::CGI::escape( $LinkOwner )%>.html"><%LinkOwner%></a>
<%else%>
<a href="<%db_cgi_url%>/user.cgi?signup_form=1"> Signup</a>
<%endif%>


Thanks

Brian

Last edited by:

Teambldr: Apr 19, 2003, 9:24 AM
Quote Reply
Re: [Teambldr] simple if question In reply to
yes you can use ifnot

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] simple if question In reply to
Thanks! Smile