title: A Logic Error, A skipping of an **If...Then**
body: <p>First, I hope you will forgive me as this is my second post and first question; second I am a hack programmer, meaning I find code hack it and then adopt it.</p>
  
  <p>This is a VB program written on VS2010. This is mainly a drop through program style. Very much like a Pachinko machine.</p>
  
  <p>I have a particularly troubling logic error. it is an <strong>If...then</strong> statement.</p>
  
  <pre><code>            If intTrinaryStarOrbit &lt;= intBinaryStarOrbit Then
                  intTrinaryStarOrbit = intBinaryStarOrbit + 1
              End If
  </code></pre>
  
  <p>The problem comes when then program skips this, even thought intTrinaryStarOrbit is less than intBinaryStarOrbit.</p>
  
  <p>I have stepped through this code so many times I have forgotten to count. I have seen the program step right over this code.</p>
  
  <p>This happens about ever 14 runs through the code.</p>
  
  <p>The next problem is not knowing what part of the code you want to see, as there is 129 pages of rem code. I do not want to spam this post so I have not posted the code. I do have a pastebin account but again I am unsure how to post what you would need to see.</p>
  
  <p>Please let me know what I need to do to receive help.</p>
  
  <p>Thanks from a clueless hack
  Seaeagle23</p>