RosettaCodeData/Task/Conditional-structures/Dao/conditional-structures-2.dao

8 lines
162 B
Text
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
a = 3
switch( a ){
case 0: io.writeln( 'case 0' )
case 1, 2: io.writeln( 'case 1,2' )
2015-02-20 00:35:01 -05:00
case 3, 4, 5: io.writeln( 'case 3,4,5' )
2013-04-10 16:57:12 -07:00
default: io.writeln( 'default' )
}