Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

How could I combine different existing rules? #101

Open
xeoshow opened this issue Dec 21, 2016 · 1 comment
Open

How could I combine different existing rules? #101

xeoshow opened this issue Dec 21, 2016 · 1 comment

Comments

@xeoshow
Copy link

xeoshow commented Dec 21, 2016

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
Copy link
Member

Hywan commented Dec 21, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants