Variables
List of variable Lua functions in FarmBot OS
variable(name)
If the sequence executing the Lua command contains a sequence variable, you can access its content by calling the variable(name)
function:
-- Assumes you are inside of a function that has a variable:
x_pos = variable("parent").x
send_message("info", x_pos, {"toast"});