Anyone have any luck with manually setting externa...
# scripting
f
Anyone have any luck with manually setting external variables vis JSR-223?
i
@fitzoh: The direct access is not implemented yet - see https://youtrack.jetbrains.com/issue/KT-15125. But all bindings are accessible via
bindings: Map<String, Any>
property, so you can write:
Copy code
val result = engine.eval(”””bindings[”thing”]”””)
instead.
👍 1
a
Cool, I didn’t realize that worked yet.