1. Home
  2. WP 3D CONFIGURATOR
  3. Conditional Logic
  4. Rules

Rules

IF Section

The IF section defines when a condition should be triggered.

It consists of several configurable fields.

1. Condition Type

Choose what the rule should evaluate.

Available options include:

A. Layer State

Checks the state of one or more layers.

Example:

IF
Blue is Selected
B. Option Price

Evaluates the price of the currently selected option.

Useful for premium upgrades or pricing thresholds.

Example:

IF
Option Price > 100
C. Total Price

Evaluates the total configurator price.

Useful for discounts, promotions, or premium package logic.

Example:

IF
Total Price >= 1000
2. Layer State Values

When using Layer State, you can choose from several states.

A. Selected

Triggers when the specified layer is selected.

Example:

IF
Blue is Selected
B. Deselected

Triggers when the specified layer is not selected.

C. Shown

Triggers when the layer is currently visible.

D. Hidden

Triggers when the layer is hidden.

E. Enabled

Triggers when the layer is enabled and available for interaction.

F. Disabled

Triggers when the layer is disabled.

G. Opened

Triggers when an accordion or expandable layer is opened.

H. Closed

Triggers when the accordion or expandable layer is closed.

3. Comparison Operators

When using Option Price or Total Price, the following operators are available.

OperatorDescription
=Equal to
Not equal to
>Greater than
<Less than
Greater than or equal to
Less than or equal to
4. Match Mode (ANY / ALL)

When multiple layers are selected in the IF condition, you can choose how they should be evaluated using the ANY or ALL toggle.

A. ANY

When ANY is selected, the condition is triggered if at least one of the selected layers satisfies the condition.

Example

Layers:
Blue
Black
White

If the condition is Selected, the rule will execute when Blue, Black, or White is selected.

B. ALL

When ALL is selected, every selected layer must satisfy the condition before the rule is triggered.

Example

Layers:
Blue
Black
White

If the condition is Selected, the rule will only execute when Blue, Black, and White are all selected.

5. THEN Section

The THEN section defines the action(s) that will be performed when the IF condition is satisfied.

Each condition can contain one or more actions, allowing you to modify the state of one or multiple layers.

Action Type

Currently, the available action type is:

Set Layer State

Changes the state of the selected layer(s) when the condition is met.

Available Layer States

After selecting Set Layer State, you can choose one of the following actions:

  • Select
  • Deselect
  • Show
  • Hide
  • Enable
  • Disable
  • Open
  • Close

These actions correspond to the same Layer State Values described in the IF section. The only difference is that, instead of checking a layer’s current state, the THEN section changes the layer to the selected state.

For example:

IF
Color is Selected

THEN
Hide Texture Design 2

or

IF
Premium Package is Selected

THEN
Enable Carbon Wheels

This allows you to build dynamic configurator behaviors by changing the state of layers whenever the specified conditions are met.

How can we help?