>>>>> Jim Robinson <[email protected]> 
>>>>> writes:

> Hi, Perhaps I always had the syntax wrong but the latest build of 'next' is
> telling me it does not like:

>   = expr tag use-tax and note ca-2012 and expr account=~/^Expenses/

Correct, this is invalid syntax.  'expr' causes everything to the right to be
evaluated as a full value expression.  You'd have to say this:

  = expr has_tag("use-tax") and note == "ca-2012" and account =~ /^Expenses/

> it appears to be OK with this:

>   = tag use-tax and note ca-2012 and expr account=~/^Expenses/

This works because the part before the "expr" is a report query (simpler
syntax), while the part after the "expr" is a value expression.

Alternatively, you could have said this, which is equivalent to both:

   = %use-tax and note ca-2012 and ^Expenses

John

Reply via email to