When the IBAction login is invoked it supposed to use a response from SOAP Web Services of either true or false, false meaning the user is not authorized to use the app. I have it using these if statements after it gets the response, but for some reason it runs both true and false ifs.
{
 [soapResults appendString: string];
 NSLog(soapResults);
 if (soapResults = @"true")
 {
  UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:soapResults delegate:self cancelButtonTitle:@"Try Again",nil otherButtonTitles:nil];
        [alert show];
  [alert release];
  [soapResults release];
  soapResults = nil;
  [loginIndicator stopAnimating];
  loginIndicator.hidden = TRUE;
  loggedinLabel.text = usernameField.text;
  loggedinLabel.textColor = [UIColor blackColor];
  NSLog(@"Valid Login"); 
 }
  if (soapResults = @"false")
  {
   NSLog(@"Invalid Login");
   UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:soapResults delegate:self cancelButtonTitle:@"Try Again",nil otherButtonTitles:nil];
   [alert show];
   [alert release];
   [soapResults release];
   soapResults = nil;
   [loginIndicator stopAnimating];
   loginIndicator.hidden = TRUE;
  }
}
Please Help