If interested also in positive case, the following is an alternative solution for Swift 2:
let email = self.txtEmail.text where !email.isEmpty, let password = self.txtPassword.text where !password.isEmpty {
//all fields are not nil && not empty
}else{
//some field is nil or empty
}
Try this....
If interested also in positive case, the following is an alternative solution for Swift 2: