SyntaxFix
Write A Post
Hire A Developer
Questions
Actually there is no c3 in the sample code in the original question. So the if would be more properly
if (c1 && c2) { //sequence 1 } else if (!c1 && !c2) { // sequence 3 }