Game Development Community

Fun Torquescript fact

by Scott Evernden · in Torque Game Engine · 01/15/2007 (6:34 pm) · 2 replies

What would you think would happen for:

switch (1) {
case 1:
if (1 != 2) break;
echo( "sorry about that 2 hrs you just wasted" );
break;
}


*eye-roll*

#1
01/15/2007 (7:18 pm)
Why. . .why would such a chunk of code exist?
#2
01/15/2007 (7:43 pm)
Thanks, I enjoyed that. I do the same thing to myself frequently.