Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Is there more than IF for template file syntax ?

Quote Reply
Is there more than IF for template file syntax ?
I was wondering if in the template files we can do more than just check for the existence of a field with IF.

I'd like to have at least ELSE. Reason is that I'm planning on setting up a database that does not contain a URL for all links, so I want to print a link with the title when there is a URL provided and just print the title without a link when there isn't one.

IF .. ELSE .. ENDIF would be the construct to do this with. Can this be done though ? Any workaround if it can't ? I mean I'd need to at least be able to negate a condition, ie. IF NOT(..).

Georg
Subject Author Views Date
Thread Is there more than IF for template file syntax ? Georg 5511 Feb 20, 1999, 3:49 AM
Post Re: Is there more than IF for template file syntax ?
darkjoe 5432 Feb 20, 1999, 4:39 AM
Post Re: Is there more than IF for template file syntax ?
Georg 5321 Feb 20, 1999, 3:06 PM
Post Re: Is there more than IF for template file syntax ?
Bobsie 5379 Feb 21, 1999, 7:16 PM
Post Re: Is there more than IF for template file syntax ?
Alex 5413 Feb 23, 1999, 12:51 PM
Post Re: Is there more than IF for template file syntax ?
Georg 5398 Feb 23, 1999, 1:20 PM
Post Re: Is there more than IF for template file syntax ?
Cal 5433 Feb 28, 1999, 2:19 AM
Post Re: Is there more than IF for template file syntax ?
Georg 5385 Feb 28, 1999, 2:54 PM
Post Re: Is there more than IF for template file syntax ?
Alex 5370 Feb 28, 1999, 4:46 PM
Post Re: Is there more than IF for template file syntax ?
socrates 5413 Feb 28, 1999, 6:59 PM
Post Re: Is there more than IF for template file syntax ?
Alex 5343 Mar 1, 1999, 8:01 AM
Post Re: Is there more than IF for template file syntax ?
zelph 5349 Mar 2, 1999, 5:41 AM
Post Re: Is there more than IF for template file syntax ?
Alex 5326 Mar 2, 1999, 7:55 AM
Post Re: Is there more than IF for template file syntax ?
socrates 5392 Mar 2, 1999, 3:53 PM