Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54b9298

Browse files
authored
Add information for | behind choices.
Also fix typo.
1 parent f232716 commit 54b9298

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎documentation/timeline-text-syntax.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ update Emilio (excited) left [animation="Tada" wait="true" repeat="3" move_time=
5555

5656
### Choice event
5757

58+
The `|` can be used to put logic behind the choice option.
59+
5860
```dtl
5961
- Yes
6062
- No | [if {John.Relationship} > 23]
61-
- Maybe | [if {Stats.Charisma} > 10] [else="disable" alt_text="Maybe [to insecure]"]
63+
- Maybe | [if {Stats.Charisma} > 10] [else="disable" alt_text="Maybe [too insecure]"]
6264
```
6365

6466
### Condition event

0 commit comments

Comments
 (0)