[ad_1]
By the time program control gets to else if(!visible){, visible can only be false.
Your compiler is hinting that you should clarify your code to else { instead.
[ad_2]
solved Why isn’t the compiler noticing that a boolean has been declared true?