title: Error: Cannot subscript a value of type 'inout [Agenda]' (aka 'inout Array<Agenda>')
body: <p>I am making an app of which when you press a button saying it's urgent, there is a label saying "URGENT." Just before I implement the user interaction with the button, I have an array (like below) with some objects having <code>urgent = true</code>, but some having <code>urgent = false</code>, so I can start out with my code.</p>
  
  <p>The array, which is in <code>MainTableViewController.swift</code>:</p>
  
  <pre><code>var content:[Agenda] = [
      Agenda(subject: "Read this article", deadline: "1-2 days", urgent: false),
      Agenda(subject: "Respond to this email", deadline: "ASAP", urgent: true),
      Agenda(subject: "Add this to diary", deadline: "When at home", urgent: true),
      Agenda(subject: "Listen to this song", deadline: "When finished working", urgent: false),
      Agenda(subject: "Check out this holiday destination", deadline: "At the weekend", urgent: false),
      Agenda(subject: "Download this podcast", deadline: "1-4 days", urgent: false),
      Agenda(subject: "Update notes", deadline: "When at home", urgent: true)
  ]
  </code></pre>
  
  <p>Then, I have a class called <code>Agenda.swift</code> where I declare the <code>subject</code>, <code>deadline</code>, and <code>urgent</code>.</p>
  
  <p>Here is the code where I show the "URGENT" or not:</p>
  
  <pre><code>if content[indexPath.row].urgent = true {
          cell.urgentLabel.text = "URGENT"
      } else {
          cell.urgentLabel.text = ""
      }
  </code></pre>
  
  <p>On the first line, I get the following error:</p>
  
  <blockquote>
    <p>Cannot subscript a value of type 'inout [Agenda]' (aka 'inout Array')</p>
  </blockquote>