We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
var flow = require('nools').flow('flow', function(flow){ flow.rule('rule', { scope:{ Math:Math } }, [Number, 'n', 'Math.floor(n*n) > 10'], function(facts){ //... }); }); flow.getSession(Math.PI).match().then(function(){ });
Throws
Error: Invalid expression 'Math.floor(n*n) > 10'
The text was updated successfully, but these errors were encountered:
You're right, there is a problem here.
Until this gets done, programmatically with a custom constraint, you can do:
[Number, 'n', function(facts){ return Math.floor( facts.n * facts.n) > 10 }]
Sorry, something went wrong.
DevSide
No branches or pull requests
Throws
The text was updated successfully, but these errors were encountered: