In BRYTER, variable updating enables you to adjust the value of a variable based on input from end users.
This feature has a wide range of applications and can be used for creating dynamic scores or adapting contract clauses in response to end user interactions.
Variable updating
When creating a new node, you can configure it to update an existing variable generated by a previous node. Instead of creating a new variable, the new node replaces the value of the existing variable.
To achieve this, simply name the new node exactly the same as the previous node that created the variable you want to update, see below.
Variable type compatibility
To ensure one node can modify the value of another node, their variable types must match.
For example, a variable generated by a Single Select node can only be updated by another Single Select node. Similarly, a variable generated by a Multiple Select node can only be updated by another Multiple Select node, and so on.
However, a variable produced by a Text input node can be updated with a Text Block value (and vice versa) because both variables are of the text type. This same principle applies to number, date, and email address variables.
Stopping variable updates
To prevent a node from updating another one, rename the lower node.
Occasionally asked questions
This is intended behavior. When you update a Single Select variable, the configuration is automatically inherited from the node it updates, which is the first node up in the graph with the same name. This is necessary to maintain consistency. If you need to change configurations, including answer options, you should do so in the original node.
Related articles
- Familiarize yourself with the concept of variables in this introduction article.
- See how variable updating is used to create a context-sensitive list.
- See how text block updates are used to implement clauses.