What does this mean

What does the ! in “if (!form” mean?

<script language=“JavaScript” type=“text/JavaScript”>
<!–
function checkme(form) {
if (!form.agree.checked) {
alert(“You must agree to the terms & conditions to enter the contest”);
return false;
} else {
return true;
}
}
// –>
</script>

thanks!!!

It means not. In that case, if not checked then send a message saying “You must agree to the terms & conditions to enter the contest”. :slight_smile: