I’ve lost a little hair with the following confusion. The situation arose when writing an agent query. I’ve tried to provide a simple case for input here:
Assignment and equality operators on the same line frighten me, because I’m seldom entirely confident which binds more tightly in any given language. So I think explicit parens would be better: `$Text=(…==…)
I agree that it would be better if your original formulation did work, and I don’t know why it doesn’t. I’ll find out.e
OK: the issue is that the date accessor dot-operators don’t like the optional empty argument list. So $Name.year is fine, $Name.year() isn’t. I think this will be fixed shortly.