Skip to content

Commit

Permalink
Merge pull request #72 from drejahl/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
mithunsatheesh authored Jun 12, 2018
2 parents 416cdd4 + d443eb2 commit f07759a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ var R = new RuleEngine();

/* Add a rule */
var rule = {
"condition": (R) => {
"condition": function(R) {
console.log(this);
R.when(this.transactionTotal < 500);
},
"consequence": (R) => {
"consequence": function(R) {
this.result = false;
this.reason = "The transaction was blocked as it was less than 500";
R.stop();
Expand Down

0 comments on commit f07759a

Please sign in to comment.