0
"Select Case" with multiple conditins -C#
In a SELECT, how can we use multiple conditions? for example SELECT x, y, z Case x=1and y=2 and z=3 Do something
4 odpowiedzi
0
just use "if(cond1) { ... } else if(cond2) { ... }"
0
sorry. thats not the question...
0
you can use ternary operator, please check my source code https://code.sololearn.com/c6C0NbpaOXl0
0
use logical and, i dont think you can do a switch - case statement but if((x=1)&&(y=2)&&(z=3)){} will accomplish the task