Skip to content

Instantly share code, notes, and snippets.

@felipegenuino
Created December 21, 2015 20:15
Show Gist options
  • Save felipegenuino/4a2618f24b3c1667dad7 to your computer and use it in GitHub Desktop.
Save felipegenuino/4a2618f24b3c1667dad7 to your computer and use it in GitHub Desktop.
//: Playground Swift - Login e senha
import UIKit
var username = "[email protected]"
var password = "1234"
if username == "[email protected]" && password == "1234"{
print("Acesso liberado")
} else if username != "[email protected]" && password != "1234" {
print("Login e senha errada")
} else if username != "[email protected]"{
print("Usuário incorreto")
}else{
print("Senha errada")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment