Variable set on: why?

Please does anybody explain me why the variable “varRecordXOK” (“this variable” in the picture here) is *ON even if the loop indicated by the arrow is not satisfied? Grazie

If that variable is getting set to true then the if condition is satisfied (true). So your question should really be “why is var CercaNome not null?”

To answer that, we’d have to see your project or screenshots showing how that variable is initialized and where you set its value after that.