var a = 5; if (a == 5) { doSomething(); } else if (a > 0) { doSomethingElse(); } else { error(); }