Skip to content

Commit

Permalink
Merge pull request #36 from gentlegiantJGC/impl-AND
Browse files Browse the repository at this point in the history
Added support for AND case
  • Loading branch information
gentlegiantJGC authored Aug 23, 2024
2 parents dd0946e + b2f643b commit ee65d76
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,16 @@ def _get_model(self, block: Block) -> BlockMesh:
for prop_match in case["when"]["OR"]
):
continue
elif "AND" in case["when"]:
if not all(
all(
block.properties.get(prop, None)
in self.parse_state_val(val)
for prop, val in prop_match.items()
)
for prop_match in case["when"]["AND"]
):
continue
elif not all(
block.properties.get(prop, None)
in self.parse_state_val(val)
Expand Down

0 comments on commit ee65d76

Please sign in to comment.