Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All ,
Let say I have a variable v_hold = Pic,Pen,Stand,PC,Lamp
And I have two buttons
I have a requirement in which
when a user presses button Pen for first time then Pen from variable v_hold should be removed and
if user presses button Stand time then Stand should removed from variable v_hold and result should be v_hold = Pic,PC,Lamp.
Now again if button pen is pressed then Pen should be added to v_hold and result should be v_hold = Pic,Pen,PC,Lamp
similarly if stand is pressed for second time then Stand should be added and v_hold = Pic,Pen,Stand,PC,Lamp
Check the attached
Check the attached