if ($did = 49) { if ($did(46,1).sel) { some code that re-loads contents of .txt into list } if ($did(46,0).sel) { .did -b protect 49 } ;this is where it should disable button 49 }