Forum Discussion

abrar22's avatar
abrar22
Frequent Contributor
9 years ago

Check Property value is blank

Hi, 

 

I want to check that property value is blank. Currently I am using attached function but its returning False for me. Any idea what is wrong with the function?

 

Thanks

 

 

  • Try comparing OleValue with an empty string:

    if (Element.Text.OleValue == "")

    If you consider whitespace to be blank, trim out the whitespace before comparison:

    if (aqString.Trim(Element.Text.OleValue) == "")