Constructing a rule to check a list of dictionaries? #16
-
Hello zeroSteiner, First things, thank you for this amazing python package!
The rules initally were just checked for symbols/attributes in personFacts[0]. Could you help me here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Well it's not currently possible, but I've already started to experiment with a solution that I think would address this problem nicely and that's supporting array comprehension expressions. This would be just like Python's list comprehension but in the Rule Engine syntax. You'd then make your rule like Until that's done I can't really think of a solution. I also don't exactly have an ETA on when that will be done. |
Beta Was this translation helpful? Give feedback.
Well it's not currently possible, but I've already started to experiment with a solution that I think would address this problem nicely and that's supporting array comprehension expressions. This would be just like Python's list comprehension but in the Rule Engine syntax. You'd then make your rule like
bcd == false and [ item['model'] == 'oncology' for item in api_response ]
and it should work the way you've described.Until that's done I can't really think of a solution. I also don't exactly have an ETA on when that will be done.