whats the reason that this wouldn't be called?

I put a print string on is valid and is not valid its coming back as is not valid so I’m guessing I’m not setting a proper reference. How can I fix this problem?