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

1 Like

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

Hi all,
This solution seems not working for me. Is there any other way to convert a string to Boolean?