Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Startup code for Sending PC
- function HomeScreen()
- term.setTextColor(colors.blue)
- print("Welcome to The Bank Of Nimrodia")
- term.setTextColor(colors.white)
- print("Please select an option from below:")
- print("")
- print("1 - Access Account")
- print("2 - Deposit into Safety Box")
- print("3 - View Account details")
- end
- function ChoiceSelection()
- write("Please enter the number of your choice: ")
- choice = tonumber(read())
- end
- HomeScreen()
- ChoiceSelection()
- print(type(choice))
- print(choice)
- function HomeChoice(choice1)
- print(choice1)
- if choice1 == 1 then
- write("You have selected: ")
- term.setTextColor(colors.green)
- write("Access account")
- term.setTextColor(colors.white)
- print("Please wait... ")
- wait(2)
- else
- term.setTextColor(colors.red)
- print("Choice is not correct, please try again")
- term.setTextColor(colors.white)
- wait(2)
- end
- end
- HomeChoice(choice)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement