Error: cannot implicitly convert type 'int' to 'bool'

hello, I had to convert my process form vb to csharp and I am having the error: cannot implicitly convert type ‘int’ to ‘bool’, at if condition

image

Hi @robot_robot what is the data type of status?

it is integer @Tapan_Behera1

If integer then it shoudn’t give an error.

image

yeah, it wasnt giving me the error but converting it to csharp the error appeared that’s why i am asking @Tapan_Behera1

Hi @robot_robot,

Try after convert to Int like below
image

Thanks,
Rajkumar

Oh! , you can write this like status==200 if you are using the C#