How could I combine different existing rules?
xeoshow opened this issue · 1 comments
xeoshow commented
Hi,
I am new to Ruler, and just have a basic question: How could I combine different existing rules dynamically?
Tried to google and searched in the GIT repo, did not find any related things...
Thanks!
Hywan commented
Hello :-),
A rule returns a boolean, this is a predicate, so you can assert(r1) && assert(r2)
, or assert(r1) or assert(r2)
, just like you want :-).