Conditional structures: Difference between revisions

Conditional structures en Verilog
(Conditional structures en Verilog)
Line 7,315:
n = 1 @CASE results: n == 1(2c)
n = 2 @CASE results: else</lang>
 
 
=={{header|Verilog}}==
===if-else===
<lang Verilog>
if( expr_booleana ) command1;
else command2;
</lang>
 
===case===
<lang Verilog>
case( expr_booleana )
valor1: command1;
valor2: command2;
...
default: commandN;
endcase
</lang>
 
 
=={{header|Visual Basic}}==
2,169

edits