checkbox

checkbox

Hi,

 I m stuck since a couple of hours on deluge

How can I code :

" If the checkbox return to the state "uncheck" then...

The thing i wanna do is 

1 if the user check the checkbox : show the field 
2 if the user uncheck the checkbox : hide the field (following a previous check)

The following code is not working

if (checkbox != null)
{
show field
}


if (checkbox == null)
{
hide field
}


thank you in advance