With Statement Loops, repeating structures of a text can be used to create a dynamic narrative. By iterating over list elements in your data you can generate more detailed and individual texts for specific list elements with less effort.
Even if you already have your project up and running, you may be able to chip away some of the complexity in your project, which in turn improves your writing productivity and reduces the time needed for quality assurance or amendments.
We believe it is ready for public use …but… may (will) still contain some bugs and missing features and changing UI.
For now, Statement Loops can only be unlocked by explicitly setting the feature flag (Advanced Settings). We believe getting the software into the users’ hands sooner means they can tell us when we’re being wrong and ideally what to change to be better! This means everyone gets better software and we’re trying to improve users’ experience of the software.
Check it out:
Statement Loops are included in a separate Story and Transform area. Thus, you can easily organize your Statements and logics for iterable list elements.
Write your text for Statement Loops as usual (pictured on the left) and add it to your (main) story(pictured on the right).
Separation of the entire text logic from that required only for the Statement Loops.
In addition, a separate Transform area comes with a Node providing content of a single list element and its respective position in this list.
How to use Statement loops:
First, activate the feature Statement Loops in the Advanced settings.
Your uploaded data should contain a list of iterable items.
Add a Data Node that connects to that list and apply a variable (e.g. weather_conditions) to it.
Change to Narrate to create a new Loop and then select the Variable (for this example weather_conditions) that should be used for iteration.
Open the Transform area by pressing OPEN TRANSFORMER. It is a special Transform area for this Statement Loop.
In this Transform, you have an input node (see image). It provides an item and an index.
The item contains a single item of your list in each iteration and you can create Nodes to access the content and use it in your Statements. The index returns the position of an item in the list, starting with zero (0). Apart from this data source, use the Transform area as you are used to.
Switch to Write and select the loop-Story.
Create your Statements as usual but be careful, they will be used at every iteration. You can use the index or create a Node that uses static data from outside the Loop to have finer control over the iterations.
Change to Narrate and add your Statement Loop to your main story.
By selecting the Statement Loop in your story you can navigate to the Statements and Transform from the statement settings.
Check the Review for quality assurance.