title: VBScript returns an error of "Name redefined"
body: <p>I have an alert box, and if I'm currently on the test Database, I want the alert box to have different text when compared to live database.</p>
  
  <p>So I declared a variable called <code>isTestDb</code> and set it to <code>True</code>, but I keep getting this annoying error:</p>
  
  <pre><code>Microsoft VBScript compilation error '800a0411'
  
  Name redefined
  
  myfiles/conn_open.asp, line 12
  
  Dim isTestDb
  ----^
  </code></pre>
  
  <p>Here is my simple code which sits inside an include at a much higher level than where I'm doing my conditional check, I'm assuming that isn't a problem.</p>
  
  <pre><code>Dim isTestDb
  
  isTestDb = True
  
  
  -- Much Later in another file somehwere
  
  If isTestDb Then
      Response.Write("&lt;h1&gt;It is set to True&lt;/h1&gt;")
      Response.End
  Else
      Response.Write("&lt;h1&gt;It is set to False&lt;/h1&gt;")
      Response.End
  End If
  </code></pre>
  
  <p>I have checked all my working directory and I'm certain that variable is not set somewhere else by the same name, I even tried different names for the variable and got the exact same error.</p>