returnfunction() -- Get the value from a user variable called "myUserVar" - assuming it already exists localvarValue = GetVar(UserVars(), "myUserVar") -- Print en error feedback or the value of the variable ifvarValue == nilthen Printf("Variable returns nothing!") else Printf("Variable value is: " .. varValue) end end