lua toggle
snippet in lua

lua toggle

user6509

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