Ruler icon indicating copy to clipboard operation
Ruler copied to clipboard

How could I combine different existing rules?

Open xeoshow opened this issue 9 years ago • 1 comments

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!

xeoshow avatar Dec 21 '16 07:12 xeoshow

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 :-).

Hywan avatar Dec 21 '16 07:12 Hywan