title: Swift if-else. The else block is never executed when condition == false
body: <p>I'm trying to perform a specific segue based on one of the fields of the request's response. When &quot;<strong>accountRes.complete ==true</strong>&quot; the code executes correctly but when it equals false the else block is never executed.</p>
  <pre><code>AF.request(Endpoints.account, method: .get, headers: headers).response { response in debugPrint (response)
      guard let data = response.data,
          let accountRes = try? JSONDecoder().decode(AccountResponse.self, from: data) else {
          return
      }
      
      debugPrint (accountRes)
      if accountRes.complete == true {
          self.performSegue (withIdentifier: &quot;home_segue&quot;, sender: nil)
      } else {
          print (&quot;Not complete&quot;)
          /// Code
      }
  }
  </code></pre>