It was a joke you fucktard(s)..
This is because you're not putting a break in the current case, and trying to put another case in the first one. Simply put a break; at the end of the case.Quote:
control cannot fall through from one case label
This is because you are putting the if statement in the same bracklets as the case but under the break; Break simply breaks the code within the paragraph.Quote:
"if" gives a warning says "unreachable code detected"
Console.WriteLine("Enter a number");
string colorName = Console.ReadLine().ToLower();
switch(colorName)
{
case "black": { Console.WriteLine("You entered black"); break; }
case "yellow": { Console.WriteLine("You entered yellow"); break; }
default: { Console.WriteLine("You entered any color"); break; }
}
My signature speaks the truth. The person who made worlds best source is saying the words.Quote:
I have never had a problem with navicat and I don't see how it could give anyone any problems...
All it does is insert into MySql, it doesn't contribute to server lag or anything like that -.-
Is dat how it works these days?Quote:
This is because you're not putting a break in the current case, and trying to put another case in the first one. Simply put a break; at the end of the case.
This is because you are putting the if statement in the same bracklets as the case but under the break; Break simply breaks the code within the paragraph.
Example:
Code:Console.WriteLine("Enter a number"); string colorName = Console.ReadLine().ToLower(); switch(colorName) { case "black": { Console.WriteLine("You entered black"); break; } case "yellow": { Console.WriteLine("You entered yellow"); break; } default: { Console.WriteLine("You entered any color"); break; } }
Console.WriteLine("Enter a number");
switch(colorName)
#region Test
switch ((client.Entity.Class / 10) * 10)
{
case 10:
case 20: // you can add them on top of each other to use the same statement.
dialog.Text("Pay a visit to Old General Yang to learn more info about your upcoming journeys.");
break; // and just use one break.
case 40:
case 50:
dialog.Text("Pay a visit to the Village Gateman to learn more info about your upcoming journeys."); break;
case 100:
dialog.Text("Pay a visit to Taoist Star to learn more info about your upcoming journeys."); break;
}
#endregion