Conditional structures: Difference between revisions

m
Fix the Dao example.
m (Fix the Dao example.)
Line 1,015:
=={{header|Dao}}==
===If Elif Else===
<lang daojava>a = 3
if( a == 1 ){
io.writeln( 'a == 1' )
}elifelse if( a== 3 ){
io.writeln( 'a == 3' )
}else{
Line 1,024:
}</lang>
===Switch Case===
<lang daojava>a = 3
switch( a ){
case 0: io.writeln( 'case 0' )
case 1, 2: io.writeln( 'case 1,2' )
case 3, ...4, 5: io.writeln( 'case 3...,4,5' )
default: io.writeln( 'default' )
}</lang>
 
=={{header|Déjà Vu}}==
<lang dejavu>if a:
Anonymous user