J
Jim
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.ParentSectionDisplayName == String.Empty:
MyString = Header.SectionDisplayName;
case Header.ParentSectionDisplayName != String.Empty &
Header.Breadcrumb.ParentSectionCategoryDisplayName ==
String.Empty:
HBXPageName = Header.SectionDisplayName;
}
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.ParentSectionDisplayName == String.Empty:
MyString = Header.SectionDisplayName;
case Header.ParentSectionDisplayName != String.Empty &
Header.Breadcrumb.ParentSectionCategoryDisplayName ==
String.Empty:
HBXPageName = Header.SectionDisplayName;
}