title: Elvis "if" operator in Kotlin as function default argument
body: <p>I was wondering, is this possible in Kotlin and if so, what is correct syntax for it?</p>
  
  <p>How can I modify function argument so:</p>
  
  <ol>
  <li><p>it's possible to pass null value </p></li>
  <li><p>to check, if null is passed -> then <code>name = ""</code> else <code>name = name</code></p></li>
  </ol>
  
  <p>What to do?</p>
  
  <pre><code>fun simpleFunction(name: String?) {
        ...
  }
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>fun simpleFunction(name: String? = null ? "" : name) {
     ...
  }
  </code></pre>