<label>#(neq('r0',choose(cint(#BasicHome.Current.ID),#BasicHome.B0.Overlay.WW,#BasicHome.B1.Overlay.WW,#BasicHome.B2.Overlay.WW,#BasicHome.B3.Overlay.WW,#BasicHome.B4.Overlay.WW,#BasicHome.B5.Overlay.WW,#BasicHome.B6.Overlay.WW,#BasicHome.B7.Overlay.WW,#BasicHome.B8.Overlay.WW,#BasicHome.B9.Overlay.WW,'r0','r0','r0')))</label>
private static object ConvertXmlStringToObject(string valueName, string valueText, Type type)
{
if (type == typeof (bool))
{
if (string.Compare(valueText, "off", true) == 0 ||
string.Compare(valueText, "no", true) == 0 ||
string.Compare(valueText, "disabled", true) == 0)
{
return false;
}
return true;
}