Rule Conditions

Rule Conditions

Overview

Conditions are the "if" part of every visibility rule and value rule. Each condition checks the current value of an option or variable and compares it using an operator. When the conditions on a rule are satisfied (based on the All/Any/None logic), the rule's action fires. You add conditions inside any rule on the Visibility Rules or Value Rules tab of an option by clicking Add condition.

Quick Reference

Logic Modes

A single rule can have multiple conditions. The logic mode at the top of the rule controls how they combine:

  • All — Every condition must be true for the rule to fire.
  • Any — At least one condition must be true.
  • None — The rule fires only when no condition is true (useful for "if NOT" logic).

Building a Condition

  1. Select a source — pick the option you want to check (listed by key), or select a pricing variable or table reference.
  2. Choose an operator — the available operators depend on the source type (see table below).
  3. Enter a comparison value — type or select the value to compare against. For choice-type sources, you pick from the available choice values.

Operator Reference

Source Type Available Operators
Text / Email Equals, Not equals, Contains, Does not contain, Starts with, Ends with, Is empty, Is not empty
Number / Slider / Quantity / Measurement Equals, Not equals, Greater than, Greater than or equal, Less than, Less than or equal, Is empty, Is not empty
Switch Equals (True / False)
Dropdown / Radio / Button Equals, Not equals, Is empty, Is not empty
Checkbox / Color Swatch / Image Swatch Contains, Does not contain, Is empty, Is not empty
Date Equals, Not equals, Before, After, Is empty, Is not empty
Time Equals, Not equals, Before, After, Is empty, Is not empty
Color Picker Equals, Not equals, Is empty, Is not empty
Font Picker Equals, Not equals, Is empty, Is not empty
Dimension Each dimension entry can be referenced separately using its label as a key
File Upload Equals, Not equals, Is empty, Is not empty
Pricing variables / Tables Equals, Not equals, Greater than, Less than

Details

  • Use the option key (not the label) when referencing options in formulas or mentally mapping conditions. The key is visible on the Basic Settings tab of each option.
  • "Is empty" and "Is not empty" are useful for rules that should fire when a customer has or hasn't interacted with a field.
  • You can mix different source types in the same rule. For example, one condition checks a Dropdown value while another checks whether a Number field is greater than zero.

Examples

  • Show engraving options only for wood material — Condition: option MATERIAL equals "Wood." Logic: All. Action on the target option: Show.
  • Require phone number when express shipping is selected — Condition (logic: All): option SHIPPING equals "Express." Action: Require on the PHONE option. The phone number becomes required only for express orders.
    • Related Articles

    • Visibility Rules

      Overview Visibility rules let you dynamically control whether an option is shown, hidden, required, or restricted based on what the customer has selected or entered elsewhere in the calculator. They make your calculator interactive and context-aware ...
    • Value Rules

      Overview Value rules let you automatically set an option's value when certain conditions are met. Instead of the customer filling in a field manually, the calculator can pre-fill it, override it, or lock it to a specific value. This is useful for ...
    • Option Types Reference

      Overview Calculator AI provides 29 option types that cover every kind of input your customers might need — from simple text fields to interactive color pickers and file uploads. This reference lists every type, grouped by category. To add an option, ...
    • Price Adjustments

      Overview Price adjustments are conditional rules that modify the calculated price when certain conditions are met. Each adjustment combines one or more conditions with a formula, letting you add surcharges, apply multipliers, or set overrides based ...
    • How Pricing Works

      Overview Calculator AI uses a multi-stage pricing pipeline to turn customer selections into a final price. Each stage feeds into the next, so you can build pricing as simple or as complex as your product requires — from a flat price to formulas that ...