title: making a boolean toggle back and forth every second in vb
body: <p>I want to make a boolean, toggle from true to false every timer tick.
  so this is what it would do if you were to print it out</p>
  
  <pre><code>true
  false
  true
  false
  true
  false
  true
  false
  </code></pre>
  
  <p>and so on until I stop the timer. I have tried the following:</p>
  
  <pre><code>Public Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  
      Dim bool As Boolean
  
      For tog = 1 To 2
  
          If tog = 1 Then
              bool = True
          Else : bool = False
  
          End If
  
      Next
  
  End Sub
  </code></pre>