If-So gives you the ability to create different versions of content on your website.
You can create one or even multiple versions of content, with each version consisting of a condition with corresponding content. If the condition is met, then that version’s content will be displayed. If the condition is not met, If-So will check the condition of the next content version and display that content.
A basic unit of dynamic versions and a default version is called a “Trigger”. Each trigger has a shortcode that you can paste anywhere on your website. Every time a page with a shortcode is rendered, If-So checks the conditions and displays content accordingly.
The chart below illustrates a basic trigger with one dynamic version:
There is no limit to the number of dynamic versions you can create within each trigger.
If you choose to create a trigger with more than one version, the condition of the first version (Version A) will be checked first. If the condition is met, Version A will be displayed. If the condition is not met, the condition of Version B will be checked, and so on. If none of the conditions are met, the default version will be displayed. You can drag and drop the versions to change the order they are checked.
The following chart illustrates a trigger with 2 dynamic versions. You can set as many versions as you like:
While creating or editing a trigger, you may want to reorder the different versions. To do so, use the drag button which is located on the top right corner of the version. Click and hold the button while dragging it vertically to place it in the desired location.