1 Reply Latest reply: Nov 8, 2012 1:13 AM by Donna Aranzanso RSS

    How to toggle a variable value using single button?

    sushil kumar

      Hi All,


      i am encountering a situation where i have to toggle the variable value 0 to 1 and 1to 0 using a single button.



      if a vaiable has initial value 1 then if i bress the button, then the value of same variable become 0


      and if i press button again, variable value become 1.. and so on..


      How we can achieve this..


      Please help me out to solve this problem