Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #create my first proc
- proc mainMenu() =
- echo("1) Print hello")
- input = readLine(stdin)
- if input == "1":
- echo ("hello")
- else:
- echo("not an option")
- # create my second proc
- proc menuTwo() =
- echo("1) return to main menu")
- option = readLine(stdin)
- if option == "1":
- mainMenu()
- else:
- echo("Not an option")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement