Dual State Button for store the value of selected buttons (intelligent Series)

Hi all,
i am working on dual state buttons and i have taken 2 buttons bt30 and bt31. there is some list of task which i want to do:

  • first i want at one time only one button should to be selected and by default it should take select button bt30, which i done this by code : if(bt30.val==0)// for bt30 button { bt30.bco=4122 bt31.bco=21758 bt31.val=0 } bt30.val=0
  • if(bt31.val==1)// bt31 button code
    {
    bt31.bco=4122
    bt30.bco=21758
    bt30.val=0
    }
    i achieved upper task by this code but now i want if i selected button bt31 then it should to display always it’s selected when i am not selecting bt30 buttons. so please help me to achieve this my problem

    • if(bt30.val==0)// 用于 BT30 按钮 { bt30.bco=4122 bt31.bco=21758 bt31.val=0 } bt30.val=0
    • if(bt31.val==1)// bt31 按钮代码 { bt31.bco=4122 bt30.bco=21758
      bt30.val=bt31.val

    }