add

open override fun add(name: String, value: Any, vararg types: KType)

Adds a named variable to the script context.

Type parameters are ignored for Python since it is dynamically typed.

Parameters

name

the variable name to bind in the script

value

the value to associate with the variable

types

ignored for Python scripts