我有以下代码:
foreach(// Some condition here)
{
while (// Some condition here)
{
foreach (// Some condition here)
{
if (// Condition again)
{
//Do some code
}
if (// Condition again)
{
//Stop the first foreach then go back to first foreach
}
}
}
}
我想要做的是当我if在最后一个循环中点击第二条语句时foreach返回第一个foreach循环。
注意:如果第二条if语句不成立,它应该继续最后一个foreach循环,直到条件不成立。
提前致谢!