title: Lambda expression inside Kotlin String
body: <p>My code: </p>
  
  <pre><code>class Team (val name: String, val aggressive: Boolean = true) {
  
      val attendance: Int
  
      init {
          if (aggressive){
              attendance = 25000
          } else {
              attendance = 20000
          }
      }
  
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>fun chooseTeam() {
      val homeTeam = Team(name = "Everton")
      println("the home team is $homeTeam.aggressive so they are ${if ($homeTeam == "aggressive") "angry" else "timid" }") 
  }
  </code></pre>
  
  <p>I'm trying to assign the value of the lambda string based on if <code>$homeTeam.aggressive</code> is true or not. </p>
  
  <p>However I'm getting red lines all over the lambda so obviously the syntax seems off. Can someone tell me whats wrong with the code?</p>