Skip to content

Constructing a rule to check a list of dictionaries? #16

Answered by zeroSteiner
priyankmav asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@zeroSteiner
Comment options

@priyankmav
Comment options

@MdTabraiz
Comment options

@MdTabraiz
Comment options

@zeroSteiner
Comment options

Answer selected by zeroSteiner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants