Ah I see.
In my mind, AND had was an implicit condition separator ... since I only use it for "If" lines, I forgot it meant more than that. I suppose the "problem" comes from what you explained.
But in the end, whatever the real reason is, you can use simply "entity" as a condition when its alone in the "if" line, but you have to use some form of check ("entity<>0") when you use it along others conditions in the if line.
In my mind, AND had was an implicit condition separator ... since I only use it for "If" lines, I forgot it meant more than that. I suppose the "problem" comes from what you explained.
But in the end, whatever the real reason is, you can use simply "entity" as a condition when its alone in the "if" line, but you have to use some form of check ("entity<>0") when you use it along others conditions in the if line.