RobluScouting / EvalEx

Dart port of https://github.com/uklimaschewski/EvalEx
Other
16 stars 6 forks source link

How to eval return a string? #4

Open taosimple opened 1 year ago

taosimple commented 1 year ago

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 commented 11 months ago

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

VittorioParagallo commented 4 weeks ago

any news on this?