jcupp
Grizzled Veteran
This code taken from the ToasterScriptDocs3 crashes my VT
My own attempts at using the switch statement give me syntax errors.
Anyone have a guess what I might be doing wrong. Should there be break statements like C maybe?
Code:
a=233
switch(a)
{ case 0
case 12
case 4
case 3
case 1 MessageBox(1)
case 2 MessageBox(2)
case 13 {
// Perform multiple lines
MessageBox(“13 is unlucky”)
}
case 14
default MessageBox(Default)
}
My own attempts at using the switch statement give me syntax errors.
Anyone have a guess what I might be doing wrong. Should there be break statements like C maybe?