In reply to sharonav:
The case item can be a list or an expression. It is legal to write:
case (pkt_type)
A, D : { //Do something … }
B, C : { //Do something … }
E : { //Do something … }
endcase
In reply to sharonav:
The case item can be a list or an expression. It is legal to write:
case (pkt_type)
A, D : { //Do something … }
B, C : { //Do something … }
E : { //Do something … }
endcase