Is there any way to get the current state of a checkbox in G4P?

Is there any way to get the current state of a checkbox in G4P? I can get the value of a slider or knob with the function ‘getValueF’, but I couldn’t find any corresponding function to get the value of a checkbox (ie, on or off, checked or unchecked). Am I missing something, or do I have to store the state somewhere outside of the checkbox object itself?

Thanks.

1 Like

cbx.isSelected(); returns true if the checkbox is selected else it returns false. Same for GOption controls.

They both inherit form the GToggleControl and this method is in that class.

2 Likes

Thanks! I don’t know how I missed that.