Computer Science Canada Multiple If's |
Author: | Namis [ Wed Sep 24, 2003 11:24 pm ] | ||
Post subject: | Multiple If's | ||
Heres my code ;o
now for the other bands, ( and more songs after i figure out how this works ) do i keep it all under 1 if statement? or do i use multiple if statements? or do i j ust change the command line to if music = "malicemizer" or if music = "aperfectcircle" etc? Something like this? tool/malicemizer/aperfectcircle being different bands. |
Author: | Namis [ Wed Sep 24, 2003 11:24 pm ] | ||
Post subject: | |||
|
Author: | Tony [ Wed Sep 24, 2003 11:29 pm ] |
Post subject: | |
come on, there's a tutorial on elsif's right here I know you know its there because you even replied to that some time ago. Anyways, you need to make your program more organized. There're way to many ifs inside other ifs. Also you should use a function that changes string to all caps (or all small) so that you dont write out two lines of possible input. Someone already wrote it, was probly even a re to one of your previous topics. |
Author: | Namis [ Wed Sep 24, 2003 11:30 pm ] |
Post subject: | |
Yeah im a retard, stab me in the face. and if you think that is unorganized you should see the rest of my code, i get lost just looking at it |
Author: | Tony [ Wed Sep 24, 2003 11:33 pm ] |
Post subject: | |
Namis wrote: Yeah im a retard, stab me in the face
*Tony stabs Namis in his face * |
Author: | Amailer [ Wed Sep 24, 2003 11:55 pm ] |
Post subject: | |
tony wrote: Namis wrote: Yeah im a retard, stab me in the face
*Tony stabs Namis in his face * how evil lol |
Author: | Blade [ Thu Sep 25, 2003 5:18 pm ] |
Post subject: | |
tony wrote: Namis wrote: Yeah im a retard, stab me in the face
*Tony stabs Namis in his face * ROCK ON MAN!!!! i wanted to stab him in the face but i didnt get here till later |
Author: | krishon [ Thu Sep 25, 2003 5:55 pm ] |
Post subject: | |
even tho there are lots of ifs...some times...u hafta put some ifs inside others...especially in games. You must write the code for every single possiblilty (which is sometimes an ass) |
Author: | PaddyLong [ Thu Sep 25, 2003 10:04 pm ] | ||
Post subject: | |||
man... you would be so better off writing some function to compare whether some variable is equal (case insensitive) to some word... something like this...
then use it like this... if wordsEqual (someInput, "yes") = true then do whatever it is you do if they entered yes end if |