Interpreter.forceSetGlobal

Sets a global variable or constant without checking whether or not the variable or const was already declared. This is used by host applications to define custom functions or objects.

class Interpreter
void
forceSetGlobal
(
T
)
(
in string name
,,
bool isConst = false
)

Parameters

name string

The name of the variable.

value T

The value the variable should be set to.

isConst bool

Whether or not the script can overwrite the global.

Meta