• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Search results

  1. B

    using global Variable in IF-THEN

    "EditMode On" commandArray = {} if (devicechanged['RemoteWK2'] == "Off") then print(' Switch is Off') x = 1 print(' X = : ' .. x .. ' '); end if (devicechanged['RemoteWK2'] == "On") then print('Switch is On') print(' X = : ' .. x .. ' '); end...
  2. B

    using global Variable in IF-THEN

    Standard is a variable a global variable. But when I call a variable in an other "IF-THEN" Statement the variable is NIL. I give the variable x "1"when the switch is pressed Off ( in the first IF-THEN). In the second IF-THEN, I call the variable x when the switch is pressed On. --> The error...
Top