SyntaxFix
Write A Post
Hire A Developer
Questions
Another way to write it shortly
bePlanVar = !!((bePlanVar == false)); // is equivalent to bePlanVar = (bePlanVar == false) ? true : false; // and if (bePlanVar == false) { bePlanVar = true; } else { bePlanVar = false; }