How to get the status of the checkbox? (on or off)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tort
:warning: Old Version Published before Godot 3 was released.

How to get the status of the checkbox? (on or off)
enter image description here

:bust_in_silhouette: Reply From: Akien

I think you need to check the is_pressed() method that CheckBox inherits from BaseButton (see docs).

I agree that it’s not the most intuitive method name for a checkbox :slight_smile:

Exactly what is needed. Thank you!

Tort | 2016-06-06 10:48

If this is the correct answer, it would be nice if you tick it as accepted.

Bojidar Marinov | 2016-06-06 11:08