Logic Structures
You can perform most operations using the Quick Logic tool. However, sometimes Quick Logic is not enough, and you need to create your own logic structures -- this is when the Logic Editor comes in handy.
In the Logic Editor, you can configure almost any pattern of behavior for your template by creating and applying logic structures. A logic structure is a chain of nodes that define when a specific situation occurs, and what happens in response to that situation. With a single logic structure, you can manage multiple elements at once in response to a single template change.
Chains are "event" driven. They always start with a When node that determines the event that triggers the chain to activate. Any attached nodes activate from top to bottom.
It does not matter where you physically position your logic structures in relation to each other. Each chain is a self-contained logical structure that is executed individually.
There are two types of When node:
-
When template starts nodes. Logic structures beginning with these nodes execute when the end user starts a new design based on this template.
-
When <QUESTION> changes nodes. Logic structures beginning with these nodes execute when the end user changes the value in the specified Question.
For example, the following chain activates when the template starts (in other words, whenever an end user creates a design based on the template).
In the following example, the logic executes when the end user changes the question Q_Price. Question Q_Vehicle is displayed (its Visibility is set to on). Then, if the value of Q-Offer is 1, the value of Element TXT_Price is set to the value in Q_Price.