Exit IF but not FOR Loop

Aug 3 2020 4:58 PM

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)