Anyone know how to make like this
switch (a)
case 23 :
case > 122 :
the case > 122 : is invalid how to do it
Printable View
Anyone know how to make like this
switch (a)
case 23 :
case > 122 :
the case > 122 : is invalid how to do it
You have to use if clauses, or you can simulate a switch with if goto and labels
switch only uses discrete values, not > < !=
Those operators work only in if (.....) statements, when you want to control branching