Lua Toggle

local togglevar = true
if togglevar then
   togglevar = false
  else
   togglevar = true 
 end
Orion