title: How should I format this piece of code?
body: <p>Here are two ways of calling <code>callscript</code> (in pseudocode):</p>
  
  <blockquote>
    <p><strong>using duplicate calls</strong></p>
  </blockquote>
  
  <pre><code>if flag == true
      flag = false
      callscript
      flag = true
  else
      callscript
  endif
  </code></pre>
  
  <blockquote>
    <p><strong>using an extra variable</strong></p>
  </blockquote>
  
  <pre><code>flag2 = flag
  flag = false
  callscript
  flag = flag2
  </code></pre>
  
  <blockquote>
    <p><strong>conditions</strong></p>
  </blockquote>
  
  <ul>
  <li>I have to make sure is that <code>flag</code> is <code>false</code> when the script is called.</li>
  <li>Also, the <code>flag</code> value has to be restored to the original value.</li>
  </ul>
  
  <p><strong>Is there a better way to do this than these two? If not, which one of these is a better choice?</strong></p>