Instantly share code, notes, and snippets.

Embed
What would you like to do?
var ahoraQue = true
for _ in 0...5 {
if ahoraQue {
print("Ahora Sí")
}
else {
print("Ahora No")
}
ahoraQue.toggle() // Cambie de true a false, o de false a true
}
/*
Ahora Sí
Ahora No
Ahora Sí
Ahora No
Ahora Sí
Ahora No
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment