switch (true) { case boolCondition: console.log(1); break; case false: console.log(2); break; }