Fog Creek Software
Discussion Board

Knowledge Base
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"))) $} 

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

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.


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