function testEqual(val) { if (val==12) { // If this condition is true return "Equal";//This line is executed } return "Not Equal";//Or This line is executed } testEqual(10);