Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem for from constraint #172

Open
sourir opened this issue Jan 13, 2016 · 1 comment
Open

problem for from constraint #172

sourir opened this issue Jan 13, 2016 · 1 comment
Labels

Comments

@sourir
Copy link

sourir commented Jan 13, 2016

i have rule like this:
when { n1: Number from [1,2,3,4,5]; }

but i got :
[ Number, "n", "true" ]
in js file.

Is it my fault?
Thanks in advance!

@markbjerke
Copy link

No, what you are seeing is the default constraint which is, the boolean constant true. It's important to remember that 'from' is providing a substitute for facts in working memory. The from modifier is not a constraint, just a source of data. So what you really have is: n1 : Number; with a from modifier to provide the number fact(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants