What is the best way to parse String condition, fo...
# getting-started
f
What is the best way to parse String condition, for example:
Copy code
if(evalCondition("message.type == 'admin' && user.type == 'admin'",context:JsonObject)) ...

where context like { message :{ type:"admin"}, user:{type:"admin"}}
What should I do inside the evalCondition method? I migrating from nodeJs to Kotlin and in nodeJS I just need to use the eval function
🙄 1