And while you're at it. Scratch the comparison in total when testing booleans:


if(c1) {
// do something
}
else {
// do something
}