I’m slightly confused, because your goal is to determine if the character is on-screen.
The way that the character is determined to be on-screen is if BOTH values (top and bottom) are TRUE.
Therefore, if any one of them is FALSE, then then the entire function should be FALSE.
So… what is it that you want? For the function to only return FALSE if BOTH are FALSE? (Only after both are TRUE?)
I just need to be clear on that.
EDIT: If so-