check-doubleConditions

Understanding Conditions

Conditions determine when a rule should activate. You can combine multiple conditions using AND/OR logic to create sophisticated rules.

circle-info

Condition Logic

Within a condition group, ALL conditions must be true (AND logic).

Between condition groups, ANY group can be true (OR logic).

Available Conditions

chevron-rightUser Rolehashtag

Target specific user roles like customers, subscribers, or custom roles.

Operators:

  • is - User has this role

  • is not - User doesn't have this role

circle-info

Example:

User Role is Guest (not logged in)

chevron-rightSession Statushashtag

Check if user is logged in or not.

Operators:

  • is - Session status matches

  • is not - Session status doesn't match

circle-info

Values:

  • Logged In

  • Logged Out

chevron-rightProduct Pricehashtag

Check product price (useful for variable products).

Operators:

  • Equal to

  • Not equal to

  • Greater than or equal to

  • Less than or equal to

circle-info

Example:

Product Price Greater than or equal to 100

chevron-rightProduct On Salehashtag

Check if product is currently on sale.

Operators:

  • is - Product is on sale

  • is not - Product is not on sale

circle-info

Values:

  • Yes

  • No

chevron-rightProduct Stock Statushashtag

Check product stock availability.

Operators:

  • is - Stock status matches

  • is not - Stock status doesn't match

circle-info

Values:

  • In Stock

  • Out of Stock

  • On Backorder

chevron-rightCart Totalhashtag

Check the total value of items in cart.

Operators:

  • Equal to

  • Not equal to

  • Greater than or equal to

  • Less than or equal to

circle-info

Example:

Cart Total Less than or equal to 50

chevron-rightCart Subtotalhashtag

Check cart subtotal (before taxes and shipping).

Operators:

  • Equal to

  • Not equal to

  • Greater than or equal to

  • Less than or equal to

chevron-rightCart Quantityhashtag

Check total number of items in cart.

Operators:

  • Equal to

  • Not equal to

  • Greater than or equal to

  • Less than or equal to

chevron-rightCart Contains Producthashtag

Check if specific product is in cart.

Operators:

  • contains - Cart has this product

  • does not contain - Cart doesn't have this product

chevron-rightCart Contains Categoryhashtag

Check if products from specific category are in cart.

Operators:

  • contains - Cart has products from this category

  • does not contain - Cart doesn't have products from this category

chevron-rightCountryhashtag

Target users from specific countries (based on billing/shipping address or IP).

Operators:

  • is - User is from this country is not - User is not from this country

chevron-rightTimehashtag

Check current time for daily recurring time windows (business hours, flash sales).

Operators:

  • is - Current time is exactly this time

  • is not - Current time is not this time

  • is before or at - Current time is before or equal to this time

  • is after or at - Current time is after or equal to this time

circle-info

Example:

Time is after or at 09:00 AND Time is before or at 17:00

Result: Rule active during business hours (9 AM - 5 PM) every day

chevron-rightDate/Timehashtag

Check specific date and time for one-time events (product launches, deadlines, limited offers).

Operators:

  • is - Current time is exactly this time

  • is not - Current time is not this time

  • is before or at - Current time is before or equal to this time

  • is after or at - Current time is after or equal to this time

circle-info

Example:

Date/Time is after or on 2024-12-25 00:00

Result: Product becomes available at midnight on Christmas

Combining Conditions

AND Logic (Within a Group)

All conditions in a group must be true for the rule to activate.

circle-info

Example: Hide button for guests on expensive products

Condition 1: Session Status is Logged Out

AND

Condition 2: Product Price Greater than or equal to 100

Both conditions must be true for the rule to activate.

OR Logic (Between Groups)

Click "Add Condition Group" to create alternative conditions. If ANY group matches, the rule activates.

circle-info

Example: Hide button for guests OR wholesale customers

Group 1: Session Status is Logged Out

OR

Group 2: User Role is Wholesale Customer

If either group is true, the rule activates.

circle-info

Pro Tip

Start with simple conditions and test them. Then add more conditions to refine your rules.

Last updated