Test label and choice view count scoping. Close #41 Close #42

This commit is contained in:
2019-05-07 01:17:38 -06:00
parent 57d92d30a4
commit b884484c43
3 changed files with 15 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
- (start)
-> start
== start
Loop #: {start}
A: {choice_a}
B: {choice_b}
@@ -7,7 +9,11 @@ C: {choice_c}
* (choice_b) Choice B
* (choice_c) {choice_b && choice_a} Choice C
-> end
- -> start
- (gather) -> start
- (end)
== end
{start.choice_a} // Make sure labeled choices and gathers are scoped
{start.gather}
It's over!

View File

@@ -17,4 +17,6 @@ B: 1
C: 0
* Choice C
> 1: Choice C
It's over!
1
2
It's over!

View File

@@ -17,4 +17,6 @@ B: 1
C: 0
* Choice C
> 1: Choice C
It's over!
1
2
It's over!