title: Unable to go programmatically from a Controller to a View Controller
body: <p>I would like to perform an action within the viewDidLoad function of my first ViewController which, when a certain value of a var <code>a</code> occurs then it goes directly to another ViewController (part of my Storyboard).</p>
  
  <p>Actually, I already implemented something but that's not working:</p>
  
  <pre><code>if let curUser = loadAppUser() {
              appUser = curUser
              testLabel.text = "Chargement de l'utilisateur"
              let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
              let homePageViewController = storyBoard.instantiateViewController(withIdentifier: "homePageViewController") as! HomePageViewController
              self.present(homePageViewController, animated: true, completion: nil)
          } else {
              testLabel.text = "Sauvegarde du nouvel utilisateur"
              saveAppUser()
          }
  </code></pre>