title: Condition in map function
body: <p>Is there anything in Scala like,</p>
  
  <pre><code>condition ? first_expression : second_expression;
  </code></pre>
  
  <p>that I can use within map function in scala?
  I want to be able to write something like this:</p>
  
  <pre><code>val statuses = tweets.map(status =&gt; status.isTruncate? //do nothing | status.getText())
  </code></pre>
  
  <p>If the inline function is not possible, how can I write a condition within <code>map</code>?</p>