Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

AND() OR() in the ForEach stmt

Here's my ForEach stmt:

{$foreach x in
(and(today)((or (keywordContains "service")(keywordContains "event"))) $} 
{$x.headline$}
{$next$} 

Here's the pseudo-code:
ForEach x in  [TODAY and ("service" or "event")]
x.headline
next

I've not used OR  and AND in the same ForEach statement. I've checked my brackets and they look ok. When I preview, I get "expected condition" error.

Thanks!
-Bob

Bob Bloom
Tuesday, July 01, 2003

You're missing one ) at the end.

Michael H. Pryor
Tuesday, July 01, 2003

*  Recent Topics

*  Fog Creek Home