NOT logic seems had some problem

Hi everyone I try to use NOT logic in this query, and I don’t understand why it isn’t working.

{{query (and (or (property :country "AU") (property :country "au")) (not (property :service "Repair") (property :service "car repair")))}}

You need to separate the not out. So:

{{query (and (or (property :country "AU") (property :country "au")) (not (property :service "Repair")) (not (property :service "car repair")))}}

Which would read, it is not service Repair AND it is not service car repair.

1 Like

Thank you Siferiax. It works!

Here’s a picture of before and after