From 8e6eda2407eb3590ea8d46965c5d4e6d32243236 Mon Sep 17 00:00:00 2001 From: Cherrie Chang Date: Thu, 7 Nov 2024 14:39:37 -0500 Subject: [PATCH] fix admonition --- docs/overview/timeline.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/overview/timeline.md b/docs/overview/timeline.md index 1ab4873124..b33d53b0ed 100644 --- a/docs/overview/timeline.md +++ b/docs/overview/timeline.md @@ -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