Skip to content

"Arrays": Chapbook (1.0.0)#


Using the Vars Section, variables can be set using any JavaScript values, such as arrays. However, Chapbook expressions will only show certain types of values.

While Chapbook cannot show an array or its value by position, a new variable can be set and then shown. This following example shows how to do this approach.



Twee Code#

:: StoryTitle
Arrays for Chapbook

:: Start
arrayExample: [13, 15]
exampleValue: arrayExample[0]
Chapbook can't display indexed array values currently. However, setting a value based on a position in an array will show.

Here is an {exampleValue}.

Twee Download