496 B
496 B
Basalt
getVariable
Returns a variable defined with setVariable
Returns
variableThe variable stored
Usage
- Displays the stored variable in the debug console
basalt.setVariable("abc", function()
basalt.debug("I got clicked")
return 1
end)
basalt.debug(basalt.getVariable("abc")()) -- Should debug log "I got clicked" and debug log 1 (which was returned from the function)
<button onClick="abc" text="Click me" />