title: Break statement in Vb.net
body: <p>How to break this statement, if this condition is meet ?</p>
  
  <pre><code>Val(DataGridView1.Rows(x).Cells(7).Value) &lt;= 2 
  </code></pre>
  
  <p>then after the above statement is meet, it should continue with this statement</p>
  
  <pre><code>DataGridView1.Rows(x).Cells(7 + 1).Value = DataGridView1.Rows(x).Cells(7).Value
  </code></pre>
  
  <p>Here my full code :</p>
  
  <pre><code>    Try
  
          For x As Integer = 0 To DataGridView1.Rows.Count - 1
  
              'Strategy 1
              If Val(DataGridView1.Rows(x).Cells(7).Value) &lt;= 2 Then
  
                  DataGridView1.Rows(x).Cells(7 + 1).Value = DataGridView1.Rows(x).Cells(7).Value - 2
  
              Else
                  DataGridView1.Rows(x).Cells(7 + 1).Value = DataGridView1.Rows(x).Cells(7).Value
  
              End If
  
  
          Next
  
  
      Catch ex As Exception
  
      End Try
  </code></pre>