Spoon, I think you’ve got an extra curly brace in there. Also, I don’t think strequals will trigger an action. It’s got to be inside something as Dontar says.
Also, in the last else if I don’t know what strequals does if you pass it more than 2 arguments.
In any case, since the last “if” is basically just checking to make sure that none of the earlier things is true… why not just leave it at “else”?
[QUOTE=tricxta;73268]
I dont even know why case exists if you have the if statement.
switch (option);
case 1:doshit;
bla bla bla
as apposed to
if (option ==1)doshit;
its silly >.<
[/QUOTE]
I’s just syntactic sugar. Cases being allowed to “fall through” to other cases can make things easier to maintain.
x = 5
switch (x)
case 1:
do stuff
break
case 2:
other stuff
break
case 3:
case 4:
case 5:
several cases here
break
case 6:
something else
default
some default action
[QUOTE=tricxta;73370]
Guess what, declaring class variables not as private then calling them without going through a method is considered bad scripting practice.
I object to this, the mysteries of scripting x_x
[/QUOTE]
The only reason I still think you are a bad scripter is because you leave your scripts open to error.
[QUOTE=tricxta;73389]Well you can think that all you like, in fact you all can. I dont really give two shits… if it works and is short as possible im good.[/QUOTE]
Well, if you would failproof your scripts you wouldn’t have to fix them (as often or at all.)