The code below is executed when a checkbox (A0) is clicked on, however it causes the checkbox to not be checked and doesn't change when it's clicked on again. Why is this?

Code:
if (document.getElementById("courseA0").checked = false) {
		document.getElementById("courseM0").disabled = false;
		document.getElementById("courseG0").disabled = false;
}