0

Is the case - - - a variable

When the Value is a string will it be.. CASE VARIABLE :

3rd Feb 2017, 8:23 AM
Sadat Adams
Sadat Adams - avatar
1 Respuesta
+ 7
string s = “some text"; switch(s) { case "is it this": //do something break; case "some text": //do something break; default: //do something break; }
3rd Feb 2017, 8:29 AM
Jafca
Jafca - avatar