??? 11/16/06 22:46 Read: times |
#128138 - I would use switch Responding to: ???'s previous message |
you can go something like
Switch(condition) {case 'first condition' : do stuff;break; case 'next condition' :do other stuff;break; default : do something completely different;break; } for some bizarre reason if you dont put a break statement at the end of each case it just drops through and performs all the coditional statements after the first condition match.Dunno why but thats what it does. |
Topic | Author | Date |
(SDC)C how to 2 | 01/01/70 00:00 | |
Something like this? | 01/01/70 00:00 | |
maybe this is it... | 01/01/70 00:00 | |
I would use switch | 01/01/70 00:00 | |
One advantage | 01/01/70 00:00 | |
Yeah you are right its not that bizzare![]() | 01/01/70 00:00 |