title: Understanding Foxpro IF Statement
body: <p>I wasn't sure what my title should be, feel free to edit my post and change it if you can come up with something better.</p>
  
  <p>There aren't many resources available on the use of Foxpro and what I'm trying to do is understand what is going on.</p>
  
  <pre><code>lldisdead=.t.
  
  Select .f. as chkbox, * from a_counties ;
      order by cn_area, cn_desc ;
      into dbf (StrTmpFile1)
  
  
  scan while !EOF()
       IF ChkBox
            selected_some_cnty = .t
       endif
  endscan
  </code></pre>
  
  <p>Here is my understanding:</p>
  
  <ul>
  <li>Do the following as long as you are not in the last record of the
  table:  </li>
  <li>IF ChkBox  </li>
  <li>Set selected_some_cnty equal to .t  </li>
  <li>Stop  Check    next    record     </li>
  <li>Keep doing this until you are out    of records.</li>
  </ul>
  
  <p>What does <code>IF CHKBOX</code> mean?</p>
  
  <blockquote>
    <p>Is it saying if the column CHKBOX is not null, do the following,
    otherwise, do nothing.</p>
  </blockquote>
  
  <p>Edit: Added additional code</p>