Hey all, I'm hoping someone may be able to help me. I need to evaluate
some strings to see if their values are what I expect and it doesn't
seem to work. Any help you can provide would be really appreciated.
Here is my non-working syntax:
switch(true)
{
case Header.ParentSe ctionDisplayNam e == String.Empty:
MyString = Header.SectionD isplayName;
case Header.ParentSe ctionDisplayNam e != String.Empty &
Header.Breadcru mb.ParentSectio nCategoryDispla yName ==
String.Empty:
HBXPageName = Header.SectionD isplayName;
}
some strings to see if their values are what I expect and it doesn't
seem to work. Any help you can provide would be really appreciated.
Here is my non-working syntax:
switch(true)
{
case Header.ParentSe ctionDisplayNam e == String.Empty:
MyString = Header.SectionD isplayName;
case Header.ParentSe ctionDisplayNam e != String.Empty &
Header.Breadcru mb.ParentSectio nCategoryDispla yName ==
String.Empty:
HBXPageName = Header.SectionD isplayName;
}
Comment