forked from solstice/solstice
Function calling and input() builtin
This commit is contained in:
13
tests/input.sols
Normal file
13
tests/input.sols
Normal file
@@ -0,0 +1,13 @@
|
||||
accessNotGranted = true
|
||||
|
||||
while accessNotGranted {
|
||||
password = input("Password: ")
|
||||
if password == "dingus" {
|
||||
accessNotGranted = false
|
||||
}
|
||||
if password != "dingus" {
|
||||
puts "Incorrect password!"
|
||||
}
|
||||
}
|
||||
|
||||
puts "Welcome!"
|
||||
Reference in New Issue
Block a user