[Javascript] elseif

Flavio Gomes flavio at economisa.com.br
Fri Apr 16 10:52:45 CDT 2004


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20040416/6310a7b9/attachment.htm>


More information about the Javascript mailing list