title: Is there a more efficient way to write this code?
body: <p>I use this counter to track how many times in a row the button has been pressed. 
  If another button is pressed the counter is reset to 0. I've not programmed in a long time and I'm certain this can be written in a more optimized way.</p>
  
  <pre><code>If counterd = 0 Then
      money = money + 1400
      counterd = counterd + 1
  ElseIf counterd = 1 Then
      money = money + 1900
      counterd = counterd + 1
  ElseIf counterd = 2 Then
      money = money + 2400
      counterd = counterd + 1
  ElseIf counterd = 3 Then
      money = money + 2900
      counterd = counterd + 1
  ElseIf counterd &gt; 4 Or counterd = 4 Then
      money = money + 3400
      counterd = counterd + 1
  End If
  
  If money &gt; 16000 Or money = 16000 Then
      money = 16000
  End If
  </code></pre>