Wednesday, February 10, 2010

Foreach Conditional Job

foreach (SPListItem listitem in MyPictureList.Items)

if (condition_for_skipping) // or if(!condition)
{
    continue;
}
}

*** if condition happens, it skips to next item on foreach (continue=skip)

No comments:

Post a Comment