Jan,

Thanks for your suggestion. You left off a closing parentheses but now it
works as shown below. To generalize for multiple expressions, I'll just
write the code in a block statement.

Thanks,

Cheryl

> > I now want to specify multiple expressions in a rule. As a an example
from
> > the Addendum documentation:
> >
> > count: 0
> > parse text [ any [ thru <pre> (count: count + 1) ] ]
>
> What about:
>
> parse text [ any [ thru <pre> (if (count: count + 1) = 2 [ print
count ] ] ]
>
> > I want to add the statement that when count =2 print count only. How do
I do
> > this? Would it involve adding multiple expressions to the parsing rule,
and
> > if so, how?


Correct solution is:

parse text [ any [ thru <pre> (if (count: count + 1) = 2 [ print
count ] )] ]

Reply via email to