Hi @vanithavs
Can you elaborate your task bit more?
You cant assign zero to boolean varible
What you can do is
Use if activity pass you boolean contion there and assign it to a string variable like this

Or you use directly use if in assign activity like this
expression: If(StrOut.contains(“Sample”),“0”,StrOut)

Regards
Sudharsan

