How do I break out of a foreach loop in C# if one of the elements meets the requirement?
foreach
For example:
foreach(string s in sList){
var ind=0; foreach(string s in sList){ if(s.equals("ok")){ return true; } ind++; } if (ind==sList.length){ return false; }