[Javascript] elseif
Peter Brunone
peter at brunone.com
Fri Apr 16 11:01:15 CDT 2004
Flavio,
I think you're thinking of VB and its associated languages with
"elseif".
For Javascript, it's "else if". I still get them mixed up.
Cheers,
Peter
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of Flavio Gomes
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
More information about the Javascript
mailing list