Breaking/exit nested for in vb.net
How do I get out of nested for or loop in vb.net? I tried using exit for but it jumped or breaked only one for loop only. How can I make it for the following: for each item in itemList for each item1 in itemList1 if item1.text = "bla bla bla" then exit for end if end for end for Unfortunately, there's no exit two levels of for statement, but there are a few workarounds to do what you want: Goto . In general, using goto is considered to be bad practice (and rightfully so), but using goto solely for a forward jump out of structured control statements is usually considered to be OK, especially if