Here is an example of what you asked. It changes color of the TEST button when you turn on MLE-1 KEY-1 on or off. You can substitute the if and eles statement for anything you want. Note just chang the IP add. to your switcher's add.
var oldValue = ogscript.getObject('0x992-Old');
var xpt = params.getValue(0x992,0);
if (oldValue == xpt)
return;
ogscript.putObject('0x992-Old', xpt);
if (xpt == 1)
ogscript.setStyle('TEST-1', 'fg#55BF3F;size:big');
else
ogscript.setStyle('TEST-1', 'fg#FF7FFC;size:big');
#Carbonite