Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

expected condition (\index:879)

I am new to CD and not very proficient in HTML.  I have created a new (blank) CD 2.0.15 site.  Every time I try to make some simple changes to the main index file and then "preview" the changes, I get the following error:

  expected condition (\index:879)

I have no idea what this means and can't find any reference to it in the archives.  Any ideas as to what I'm forgetting to leave out? 

The script I am trying to run is:

{$foreach  x in (and (keyword_contains "excel") ((not keyword_contains "(NFP)"))$}
{$x.body$}
{$next$}

At the moment, I have one article with the keyword "excel".

Thanks for your help.

p2
Monday, August 18, 2003

It's a typo. Try this:

{$ foreach  x in (and (keyword_contains "excel")(not (keyword_contains "(NFP)"))) $}
{$x.body$}
{$next$}

John C
Monday, August 18, 2003

Thanks John.  I had a third condition in my script and eliminated it.  But I missed the superfluous parentheses. Even after I double checked it.  Sigh...

p2
Monday, August 18, 2003

Wouldn't it be nice if CD matched parentheses?  Maybe it could make the odd paren a weird color in the editor.

Joel Goldstick
Tuesday, August 19, 2003

*  Recent Topics

*  Fog Creek Home