Implicit conversion from string to boolean

Hi,
How to solve this problem.

Add a logical condition, in addition to your if condition <> “”
or .Length > 0

1 Like

Hi KarthikByggari,
when is print the value using this code then i got the result now i want to use .contains method in it then how to use ?

You can use in the IF condition → YourString.Contains(“findstring”)

@ KarthikByggari is correct.
ExtractDataTable.Rows(K_Counter).Item(“Product_Description”).ToString.Contains(“yourString”)

Ok ,i got it
thanks KarthikByggari

1 Like

got it @ kirti.iyer
thanks…