Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
baoxingjie committed Jul 31, 2018
1 parent 317326c commit 9fc3b2d
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 @@ -87,9 +87,9 @@ runner.addOperatorWithAlias("如果", "if",null);
runner.addOperatorWithAlias("", "then",null);
runner.addOperatorWithAlias("否则", "else",null);

exp = "如果 (如果 1==2 则 false 否则 true) 则 {2+2;} 否则 {20 + 20;}";
exp = "如果 (语文+数学+英语>270) 则 {return 1;} 否则 {return 0;}";
DefaultContext<String, Object> context = new DefaultContext<String, Object>();
runner.execute(exp,nil,null,false,false,null);
runner.execute(exp,context,null,false,false,null);
```

### 如何自定义Operator
Expand Down

0 comments on commit 9fc3b2d

Please sign in to comment.