title: Syntax error, '(' - C#
body: <p>I'm working with C# (in asp.net) and i'm trying to add nested <code>IF</code> in a correct way but i keep getting this 3 errors with the second <code>if (chk1==checked)</code> that say  <code>Syntax error, '(' expected</code> ,  <code>) expected</code> and  <code>) expected</code>  ! can someone help me ? </p>
  
  <p>my code : </p>
  
  <pre><code>protected void CreateUser_Click(object sender, EventArgs e)
  {
      var manager = Context.GetOwinContext().GetUserManager&lt;ApplicationUserManager&gt;();
      var signInManager = Context.GetOwinContext().Get&lt;ApplicationSignInManager&gt;();
      var user = new ApplicationUser() { UserName = Email.Text, Email = Email.Text };
      IdentityResult result = manager.Create(user, Password.Text);
      if (result.Succeeded)
      {
          if (chk1==checked)
          {
              signInManager.SignIn( user, isPersistent: false, rememberBrowser: false);
              IdentityHelper.RedirectToReturnUrl(Request.QueryString["ReturnUrl"], Response);
          } else 
              Response.Write("Sorry");
  
      }
      else 
      {
          ErrorMessage.Text = result.Errors.FirstOrDefault();
      }
  }
  </code></pre>