stat upside down

Hi,

I have this strange issue. The following code was working fine (I think)
as :

That doesn’t quite follow for me.

However, I think you might really want this:

when: a is defined and a.stat.isfile

OR (depending on use case)

when: a is defined and not a.stat.isfile

Maybe try one of those first…