2
Answers

Exit IF but not FOR Loop

How do I exit from if/else within FOR Loop( I should not exit from FOR loop)

foreach (DataRow row in dsLoad.Rows)
{
if(x==y)
{
exit from if//what do I add here(but I should not exit from FOR loop)
}
else if(y==z)
{
}

Answers (2)