Local Scoping
About Variables
Where can I use local?
local?How does local work?
local work?local key = "1234"
log this
// returns {"key":"1234"}Local variables can be re-assigned without the local keyword
def myFunc() (
local v = 0
v ++
return v
)
log myFunc()
// returns 1Example script
Last updated