Advertisement
Guest User

Untitled

a guest
Jun 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. func validateUserInput() {
  2. if let userName = txtUserName.text {
  3. if let password = txtPassword.text {
  4. if let accountNo = txtAccountNo.text {
  5. validateAccountDetails(userName, password, accountNo)
  6. }
  7. else {
  8. show("Account Number should not be empty.")
  9. }
  10. } else {
  11. show("Password should not be empty.")
  12. }
  13. } else {
  14. show("UserName should not be empty.")
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement