You can use return to simply abort your command, but can you also use continue?
For example:
- Code: Select all
if (p == null)
{
//return or continue?
}
I know, if you do continue in a for loop, the for loop will be executed the next time. example:
- Code: Select all
for (int i = 0; i < 10; i++)
{
if (i == 0)
continue; //only 0 will not be printed on the console. If you use break instead of continue, the for loop will be cancelled instead.
Console.Write(i);
}