nemonik/Intellect

Add Support for Multiple Rule Conditions

Closed this issue · 3 comments

I can't seem to find a way to evaluate a rule based on multiple conditions For example, the following does not work:

when:
$ClassA := ClassA()
$ClassB := ClassB()

Can we get compound conditions?

Not yet supported. In some cases you can chain multiple rules to do what you want. Evaluating for not conditions and halting on true to exit, continuing on to the next rule otherwise... not perfect, but the need to make my mortgage and put food on the table has delayed my own desire for something along the lines of what you are looking for.

Your answer to #6 solves this problem (really more about learning multiple variables, than assessing multiple conditions) for me. Thanks!

Actually, your specific example's when portion would not likely be supported. But I have a desire to support richer when portions. The use cases we have supported haven't needed. Try using multiple rules for now...