Closing an If statement without using "Else"
Hi everyone,
I´d like to know if it is possible to close an "if statement" without using "else if" or "else", in case there is only one condition to be met.
My code is as follows:
If (Text15 == "BOILING") {
app.alert ("Correct answer. Congratulations!")
}
else if (Text15 !== "BOILING") {
app.alert (Incorrect answer. Please check for any misspelling.");
*** end of code***
Is it aceptable to finish the code with only one "else if" and not using an "else" statement after it, since I don´t have any other conditions to check?
If not, how can I close these sequence of conditions, since I won´t need an "else" statement?
Thanks a lot for your clarification in advance.
