Please post your code here if you can using code tags, not an image.
If you do this:
|
Code:
|
if (myBoolean = true) { // = means assignment |
you are SETTING myBoolean to true. Better would be:
|
Code:
|
if (myBoolean == true) { // == means testing for equailty |
and BEST would be:
|
Code:
|
if (myBoolean) { // don't even need == true here |