I need help with a simple if function

Godot Version

4.2.1.stable

Question

hawlp
Hi! I want, in a func after a button is pressed, to check if Panel visibility = true; if it is then it turns the Panel visibility off, or else it turns it on. All the tutorials I’ve seen explain the if functionality only using var and I just started learning about the if statement.

Well, the first thing is you are missing some colons after if and else

if blahblahblah:
    Blahblah
2 Likes

Actually, it’s colons, not semicolons. But otherwise, you are right.

3 Likes