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
Object value = null; String calculation="if(flag=='Y') then return 1; else if (flag=='N') then return 0;"; DefaultContext<String, Object> paramContext = new DefaultContext<>(); paramContext.put("flag","N"); try { value = new ExpressRunner().execute(calculation, paramContext, null, true, false); } catch (Exception e) { e.printStackTrace(); } System.out.println(("公式解析 value="+value));; //3.2.0版本 输出结果 0 //升级3.3.2后,输出结果为null
The text was updated successfully, but these errors were encountered:
runner.setIgnoreConstChar(true);
Sorry, something went wrong.
楼上正解
No branches or pull requests
The text was updated successfully, but these errors were encountered: