Skip to content
New issue

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

How to eval return a string? #4

Open
taosimple opened this issue May 22, 2023 · 2 comments
Open

How to eval return a string? #4

taosimple opened this issue May 22, 2023 · 2 comments

Comments

@taosimple
Copy link

taosimple commented May 22, 2023

Expression.eval() only return decimal, how to return a string like the java port

Expression expression = new Expression("\"Hello \" + name + \", you are \" + age")
    .with("name","Frank")
    .and("age",38);

System.out.println(expression.evaluate().getStringValue()); // prints Hello Frank, you are 38
@widavies
Copy link
Contributor

Thanks, I've been very busy lately but I'll fix this when I have a chance.

@VittorioParagallo
Copy link

any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants