4
I found this code explaining the flow control continue.
string [] nomes = new string[] { "Macoratti", "Miriam", "Pedro"};
foreach (string nome in nomes)
{
if (nome == "Miriam")
continue;
Console.WriteLine (nome);
}
The continue command is also used in loops(
while, for, etc.) when in execution the continue command will move the execution to the next loop iteration without executing lines of code after continue.
Exit:
Macoratti
Peter
- How does the
continue? - In which situations its use is useful?
- Because the output does not print the name Miriam?
I think it is dup even if it is another language, because it is identical: https://answall.com/q/80589/101
– Maniero