Skip to content

Instantly share code, notes, and snippets.

@videlais
Created May 27, 2019 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save videlais/2bfbe27776ff962c3b73385e6ca74127 to your computer and use it in GitHub Desktop.
Save videlais/2bfbe27776ff962c3b73385e6ca74127 to your computer and use it in GitHub Desktop.
VAR name = "Dan"
It was our first date and we hadn't made dinner plans.
-> Pizza_Choices
=== Pizza_Choices ===
He turned to me. "What should we eat, {name}?"
+ [Pizza?]
-> Pizza
+ [Sushi?]
-> Sushi
+ [Salad?]
-> Salad
+ [Nothing?]
-> Nothing
=== Pizza ===
He shook his head. "I don't like pizza."
-> Pizza_Choices
=== Sushi ===
"Sushi sounds good!"
-> DONE
=== Salad ===
"Not a salad"
-> Pizza_Choices
=== Nothing ===
"We have to eat something!"
-> Pizza_Choices
=== function changeName(a) ===
~ name = a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment