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
This constraint compiles/executes:
dw : DimensionalWeight dw.value != null && (dw.valid == null || dw.valid == false);
While this one does not:
dw : DimensionalWeight dw.value !=null && (dw.valid == null || dw.valid == false);
The white space between the "!=" and the "null" has been removed.
The text was updated successfully, but these errors were encountered:
I looks like this is a specific bug with null and the whitespace. You can also use isNull(dw.value)
null
isNull(dw.value)
var indexOf = definedFuncs.indexOf; var hasOwnProperty = Object.prototype.hasOwnProperty;return function matcher0(fact, hash){var dw = hash.dw;var null = fact.null; return !!(dw['value'] == null);} SyntaxError: Unexpected token null at exports.toJs (nools/lib/constraintMatcher.js:441:13) at Object.exports.getMatcher (nools/lib/constraintMatcher.js:448:12)
Sorry, something went wrong.
fix #157 parsing error with null/true/false, jison 0.4.17
dc2bf80
cd0e578
7639d0c
PR #204
702160f
DevSide
Successfully merging a pull request may close this issue.
This constraint compiles/executes:
dw : DimensionalWeight dw.value != null && (dw.valid == null || dw.valid == false);
While this one does not:
dw : DimensionalWeight dw.value !=null && (dw.valid == null || dw.valid == false);
The white space between the "!=" and the "null" has been removed.
The text was updated successfully, but these errors were encountered: