Conditional logic is a feature that allows you to create rules and dependencies between options and option values. It helps you control the visibility and availability of certain options based on the choices made by customers.
For example, if you sell phone cases, you can use conditional logic to show different phone models based on the selected phone brand.
- Apple:
- Samsung:
Another example is in a restaurant ordering website, where customers can build their own pizza. Using conditional logic, if a customer selects “Vegetarian” as the pizza type, it then will only show vegetable toppings and exclude options related to meat or poultry.
This ensures that customers see relevant choices and prevents them from selecting incompatible options.