Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips



I'm evaluating CityDesk for the purposes of producing a small website that I run for Programmers Notepad (see ) and I've come across limitations with the scripting language pretty much straight away. There are several main pages in my site which show that they're active by disabling their links in the site navigation bar and changing the colour of the box surrounding the link (shown at the top and the bottom of the window).

What I really want is something like this:

{$ if .filename = "index.html" $}blah{$ endif $}

I suspect I could do it with variables, but this kind of if x = y functionality would be really useful (imho).


Simon Steele
Monday, April 15, 2002

While I'm at it, how about something like:

{$ if nonblank .sillyvar $} something {$ else $} else {$ endif $}

This would also simplify things greatly.


Simon Steele
Monday, April 15, 2002


Check the helpfile for the ifblank and if nonblank syntax.  I think that's what you are asking for... (you can do the else by just using both ifblank and if nonblank).

Michael H. Pryor
Monday, April 15, 2002

If you figure out a nice way to do this, folks would like to take advantage of it.

Monday, April 15, 2002

Hi, the point of my posting was that you shouldn't really have to include both if blank and if nonblank statements for an if-else situation - this is really too much typing for a simple bit of logic.

My first question is answered (kind of) by the posts quoted by tk - there is no way of doing this at the moment. I am asking for a way to check if the current page is "x.html" and then do something (or not) depending on this fact. The first post linked by tk describes this in a more specific term, but I would prefer some nice if x = y functionality.

Simon Steele
Monday, April 15, 2002

*  Recent Topics

*  Fog Creek Home