title: Swift inline conditional?
body: <p>How do I do this in Swift ?</p>
  
  <pre><code>(someboolexpression ? "Return value 1" : "Return value 2")
  </code></pre>
  
  <p>(no I have not read the whole manual yet... I probably missed it on page 2!)</p>
  
  <p>OK so its on page 91 and the above appears to be correct.  However I am trying to use this in a string like so:</p>
  
  <pre><code>println(" some string \(some expression ? "Return value 1" : "Return value 2")"
  </code></pre>
  
  <p>but the compiler is not happy.  Any idea if this if possible?</p>
  
  <p>This is as close as I have been able to get</p>
  
  <pre><code>let exists = "exists"
  let doesnotexist= "does not exist"
  
  println("  something \(fileExists ? exists : doesnotexist)")
  </code></pre>