diff --git a/src/ifcopenshell-python/ifcopenshell/util/selector.py b/src/ifcopenshell-python/ifcopenshell/util/selector.py index 8a32c4674d..910f287647 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/selector.py +++ b/src/ifcopenshell-python/ifcopenshell/util/selector.py @@ -185,7 +185,7 @@ class Selector: elif token_type == "SIGNED_FLOAT": value = float(filter_rule.children[2].children[0]) elif token_type == "BOOLEAN": - value = filter_rule.children[2].children[0] == "TRUE" + value = filter_rule.children[2].children[0].lower() == 'true' elif token_type == "NULL": value = None for element in elements: