CheckBox table HELP!

HHHHHHHHHHHHHEEEEEEEEEEEEEEEEELLLLLLLLLLLLLLLLPPPPPPPPPPPPPP!!!

if check box "hello" of window "Main" is true then 
say hello using "alex"
else if 
if check box "hello" of window "Main" is false then 
-- Do nothing 
set hello to hello 
end if 
end if 
 

this is some of the code:
the main idea is that i when a user checks a check box the computer says “Hello” but if its unchecked i want it to do nothing.

PLEASE HELP!!! YOUR NAME WILL APPEAR IN MY PROGRAM ABOUT BOX IF FIXED!!!

Hi,

Xcode comes with a hugh documentation, where all classes and methods are described in-depth.

A check box is technically a button, you can see the class (NSButton) in the inspector window.
A button object can not be true or false, it has a property state, which indicates the three possible states (Off, On, Mixed) of a button as an integer value


if state of button "hello" of window "Main" is 1 then
	say hello using "alex"
end if

Stefan’s post is correct and this is just another way with the same results

if (if state of button "hello" of window "Main" as boolean) then
   say hello using "alex"
end if