title: if let variable - Use of unresolved identifier
body: <p>I am using SwiftyJSON to call some APIs and fetch some data.
  When I use:</p>
  
  <pre><code>if let variable = json["response"]["fieldname"] {
  } else {
      println("error")
  }
  </code></pre>
  
  <p>I am not able to use the variable later on, for example to append the value to an array. 
  For example:</p>
  
  <pre><code>if let variable1 = json["response"]["fieldname1"] {
  } else {
      println("error")
  }
  if let variable2 = json["response"]["fieldname2"] {
  } else {
      println("error")
  }
  var currentRecord = structure(variable1, variable2)    ---&gt; This line returns an error (use of unresolved identifier variable1) as not able to find variable1 or variable2
  myArray.append(currentRecord)
  </code></pre>
  
  <p>How can I solve this?</p>