Simple answer:
You must leave in your block if you are referencing it in another variable using IF… THEN…
Work around (one you already found):
Use the WHERE clause instead with a flag on DATE, see this Reporter FAQ entry.
Drawback:
As of WebI v6.5.1 there is still no WHERE clause for variables I believe.
Andreas
(BOB member since 2002-06-20)