Skip to content

Commit

Permalink
Added support for AND case
Browse files Browse the repository at this point in the history
There was support for the OR case but no support for the AND case
  • Loading branch information
gentlegiantJGC committed Aug 23, 2024
1 parent dd0946e commit b2f643b
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 b2f643b

Please sign in to comment.