Skip to content

Commit

Permalink
Update concept-chatterscript.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams authored Jan 12, 2025
1 parent da418af commit c8fbd91
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/3.0/concept-chatterscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,17 @@ Clive: ... no.

### if/else Statements: <!-- {docsify-ignore} -->

ChatterScript supports standard if/else/elseif statements.
ChatterScript supports standard if/endif statements.

```chatterscript
<<if "hi" == "hi">>
The two strings are the same!
<<endif>>
```

Every `<<if>>` branch must be followed by an associated `<<endif>>`. You can also use `<<else>>` and `<<elseif>>` to create more complex multiple choice branches.

```
<<if $variable == 1>>
Success!
<<elseif $variable == "hello">>
Expand Down Expand Up @@ -390,4 +395,4 @@ Chatterbox allows you to, at will, fast-forward past content strings. This is ha

Fast-forwarding is typically triggered by calling `ChatterboxFastForward()` but you may also find it useful to trigger a fast-forward from ChatterScript. You can do this using `<<fastforward>>` in ChatterScript as you would other actions.

You can also turn fast-forwarding off from inside ChatterScript as well; this is done with the `<<fastmark>>` action. Content **after** `<<fastmark>>` will still appear but any content between triggering fast-forwarding and `<<fastmark>>` will not appear.
You can also turn fast-forwarding off from inside ChatterScript as well; this is done with the `<<fastmark>>` action. Content **after** `<<fastmark>>` will still appear but any content between triggering fast-forwarding and `<<fastmark>>` will not appear.

0 comments on commit c8fbd91

Please sign in to comment.