if(some statement){ // do whatever } else if(some other statement){ // do whatever } ----- Original Message ----- From: Flavio Gomes To: [JavaScript List] Sent: Friday, April 16, 2004 11:52 AM Subject: [Javascript] elseif Pretty quick and simple (tought I couldn't answear o.o) How to write an "elseif"? These didn't seem to work here with me if (a) { alert(a) } elseif (b) { alert(b) } else { alert('Nor a, nor b') } if (a) { alert(a) } elif (b) { alert(b) } else { alert('Nor a, nor b') } Thanks in Advance, Ps.: Should i simply cascade all the "ifs" in the "elses"? --- Flavio Gomes flavio at economisa.com.br ------------------------------------------------------------------------------ _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20040416/924fc5b9/attachment.htm>