title: Flash - Actionscript if ... else statement
body: <p>I have a basic actionscript code which basically shows a list depending on the value of a text box.</p>
  
  <pre><code>if (txtValue.text = "0")
  {
      lstFilm.visible = false;
  }
  else if (txtValue.text = "1")
  {
      lstFilm.visible = true;
  }
  </code></pre>
  
  <p>The problem i'm having with it is instead of it changing the visibility of the list, it changes the value in the box. Any ideas why or how I could achieve this?</p>