Skip to content

Commit e208dd0

Browse files
c4rlosdiasMoult
authored andcommitted
Update selector.py
Changes fix problem with boolean values
1 parent a62a32d commit e208dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ifcopenshell-python/ifcopenshell/util/selector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def filter_elements(self, elements, filter_rule):
204204
value = filter_rule.children[2].children[0][1:-1]
205205
for element in elements:
206206
element_value = self.get_element_value(element, key)
207-
if not element_value:
207+
if element_value is None:
208208
continue
209209
if not comparison or self.filter_element(element, element_value, comparison, value):
210210
results.append(element)

0 commit comments

Comments
 (0)