Skip to content

Can I create rule for complex #27

Answered by szymic1
szymic1 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I've found solution:

rule = rule_engine.Rule(
'how_many_km.value == "100000" and colour.value=="red" or type_of_engine.value=="gas"'
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@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
2 participants