Skip to content

Commit

Permalink
fix admonition
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriechang committed Nov 7, 2024
1 parent b39d3e7 commit 8e6eda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/overview/timeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ main_timeline.push(part1_trial, choice_trial);
```
In the above implementation of `choice_trial`, choice 1 adds `english_branch` at the start of `main_timeline`, such that `main_timeline = [english_branch, part1_trial, choice_trial]`, but because the execution of `main_timeline` is past the first node at this point in runtime, the newly added `english_branch` will not be executed. Similarly, modifying `case '1'` in `choice_trial` to remove `part1_trial` will not change any behavior in the timeline.
!!! danger "Dynamically adding/removing nodes in a looping timeline"
!!! danger
In the case of a looping timeline, adding a timeline node at a point before the current node will cause the current node to be executed again; and removing a timeline node at a point before the current node will cause the next node to be skipped.
## Timeline start and finish functions
Expand Down

0 comments on commit 8e6eda2

Please sign in to comment.