Introduction to Dynamic Logic

Top  Previous  Next

Note: Logic is an advanced tool that is typically reserved for Implementation Analysts and the Support Team. By default, access to edit dynamic logic is turned off to all users. If you are interested in working with logic in the system, please submit a support ticket to consult with the Support Team regarding Dynamic Logic access.

Dynamic Logic can help you use the Thriva product to meet specific needs. However, logic can become exceedingly complex and our recommendation will always be, Simpler is better. Logic is intended to be used to help you with the exceptional cases and rarely used as the norm. The following help files and videos will teach you when and where you may use logic and how to use it effectively. As always, if you have questions, consult the Thriva Support Team by submitting a Support Request.

The primary kind of logic used in the Thriva product is called Boolean Dynamic Display Logic. Dynamic Display Logic is a specially-formatted expression that determines whether or not an item displays based on a true or false statement. Most simply put, the item (financial option, question, or text block for example) will only display if the statement specified in the dynamic logic expression is true.

Consider this statement:

1==0

Since 1 does not equal 0, this is a false statement. This is the basic principle behind Conditional Display Logic. The system would read this statement and return false preventing the item it is attached to from displaying.

The above statement would actually work in Thriva to prevent something from displaying but it doesnt really help us because its not very dynamic. To add functionality to our dynamic display logic, we can add variables to the statement.

For example:

Number of Participants being registered in the Cart == 2

This example introduces a variable. I said above that the expression must be specially-formatted so please note that I did not use a field that the system will recognize in the above example (we will get to the fields).

Additionally, there are a variety of operators other than == that can be used in the creation of logic. The specifics of each operator will be covered in later help files.