2009-09-06 07:44 PM - last edited on 2023-05-09 04:44 PM by Rubia Torres
NOT (story=1 OR story=2)In ArchiCAD, we do not have a unary NOT operator as in the first expression, so we need another way of expressing it. De Morgan's laws give that to us. So if you think in terms of the first expression as you come up with your query, it is the second, equivalent one that you would actually enter.
is the same as
(story <> 1) AND (story <> 2)
(story <> 1 and story <> 2 )The other case of de Morgan's laws is illustrated here, where we want to filter elements other than those that are on Story 1 and have their ID set to "x":
NOT (story=1 AND ElementID="x")In ArchiCAD, the parentheses would actually be entered like this:
is the same as
(story <> 1) OR (ElementID <> "x")
(story <> 1 or Element ID is not x )Distributivity and other properties listed on that Wiki page will also be of interest.
2009-09-06 07:50 PM