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