title: Why I'm getting this error in swift 3.0
body: <blockquote>
    <p>binary operator '&amp;' cannot be applied to two bool operands</p>
  </blockquote>
  
  <p>Here I'm sharing my code.</p>
  
  <pre><code>@IBOutlet weak var fnameTxt: UITextField!
  @IBOutlet weak var lnameTxt: UITextField!
  @IBOutlet weak var addrsTxt: UITextField!
  
  if (fnameTxt.validate()) &amp; (lnameTxt.validate()) &amp; (addrsTxt.validate()){
   print("successfully validated")
  }else{
   print("validation failed")
  }
  
  -(BOOL)validate{
      if(isMandatory){
          if([self.text length]==0){
              [self showErrorIconForMsg:strLengthValidationMsg];
              return NO;
          }
      }
      for (int i=0; i&lt;[arrRegx count]; i++) {
          NSDictionary *dic=[arrRegx objectAtIndex:i];
          if([dic objectForKey:@"confirm"]){
              TextFieldValidator *txtConfirm=[dic objectForKey:@"confirm"];
              if(![txtConfirm.text isEqualToString:self.text]){
                  [self showErrorIconForMsg:[dic objectForKey:@"msg"]];
                  return NO;
              }
          }else if(![[dic objectForKey:@"regx"] isEqualToString:@""] &amp;&amp; [self.text length]!=0 &amp;&amp; ![self validateString:self.text withRegex:[dic objectForKey:@"regx"]]){
              [self showErrorIconForMsg:[dic objectForKey:@"msg"]];
              return NO;
          }
      }
      self.rightView=nil;
      return YES;
  }
  </code></pre>
  
  <p>Here, validate() returns boolean value,any idea on this??</p>