Nik
Feb 07, 2015Cirrus
breaking out of a switch statement?
is it possible to break out of a switch statement like you would a loop? the break command doesn't seem to work.
my goal is to say.. if condition is met then use the default action, like this:
switch blah {
"foo" {
good condition { do good stuff }
bad condition { skip to the end of the statement and execute default }
default {
tell the user he sucks
}