bool buttonstatePopup = exec.GetLED(99);
bool buttonstateVakuum = exec.GetLED(101);
bool buttonstateSpan = exec.GetLED(1);

if (buttonstatePopup)
{
   AS3.Switchbutton(true,20104);
}
else
{
   AS3.Switchbutton(false,20104);

}

if (buttonstateVakuum)
{
   AS3.Switchbutton(true,20105);
}
else
{
   AS3.Switchbutton(false,20105);

}

if (buttonstateSpan)
{
   AS3.Switchbutton(true,20103);
}
else
{
   AS3.Switchbutton(false,20103);

}