OZONE Asylum
Forums
DHTML/Javascript
complex switch case
This page's ID:
27696
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Tried already?: [code] switch(var) { case 1: doBefore2(); //only if needed case 2: do1and2(); break; case 3: do3(); break; } [/code] If it wasn't clear what changed, is just not putting a break statement for a mutilple cases. This is the way it works in C/C++ at least. __________________________________ [sigrotate][img]http://invis.free.anonymizer.com/http://alevice.0catch.com/nonibeetle25sml2.gif[/img]|Something else[/sigrotate] [url=http://faq.ozoneasylum.com/1176]Sexy Demoness cel[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »