Convert String to Boolean

i’m passing String StrVar1 = "row(0).ToString=“123” "
in if condition and its not working when i hardcode it its working

Hi @rakesh4
use if condtition as

row(0).ToString.Contains(“123”)

Thanks
Ashwin S

Hi @rakesh4
do one thing

StrVar1= “row(0).ToString.Contains(““123””)”

and in condition as strvar1.tostring=true

Thanks
Ashwin S

will it return me always True??

Hi @rakesh4

it depends
:slight_smile:
Thanks
Ashwin S