a = false b = true if (a) if (b) console.log("ok") else console.log("not ok")