I apologize in advance for a very stupid question! I'm just a novice coder can not write one condition here is such a code
if (c) { if (!a && b) { console.log('a1'); } else { console.log('a2'); } else { if (!(!a && b)) { console.log('a1'); } else { console.log('a2'); } }