Skip to navigation Skip to main content

Free Grow sales & stop fraud — Smart Cycle Discounts + TrustLens, free on WordPress.org Two free WooCommerce plugins

Explore both

Free Grow sales & stop fraud — Smart Cycle Discounts + TrustLens, free on WordPress.org Two free WooCommerce plugins

Explore both
  • WordPress
    WordPress Plugins
    View all
    Smart Cycle Discounts logo

    Smart Cycle Discounts

    Automate discount campaigns with scheduling, analytics, and smart product targeting.

    7 Discount Types Cycle AI
    Free Pro from $59
    TrustLens logo

    TrustLens

    Customer trust intelligence for WooCommerce. Score customers, spot abuse, protect revenue.

    Trust Scores Abuse Detection
    Free Pro from $79

    New Plugin

    Coming Soon

    Something exciting is in the works. Join the waitlist to be first to know.

    Get Notified
    Notify Me
    Secure Checkout
    WordPress.org
    14-Day Refund
    Resources
    Documentation Guides & tutorials
    Discount Calculator Plan your strategy
    Support Get help
    SCD Changelog Discount plugin updates
    TrustLens Changelog Trust intelligence updates
    Get notified on new releases
  • Affiliate
    Program
    Overview How the program works
    How It Works 4 steps from apply to earn
    Commission Details 30% · 60-day cookie · recurring
    Get Started
    Apply Now Open
    Takes ~2 minutes
    Earnings Calculator Estimate your monthly income
    FAQ Payouts, cookies, renewals
    Resources
    Brand Kit Logos, banners, copy, social
    Playbook Tactics that actually convert
    FTC Disclosure How to disclose properly
    Affiliate Terms Full program agreement
    Contact Team Open the contact form
    Earn 30% recurring on every sale Free to join · 60-day cookie · monthly PayPal payouts
    Apply Now
  • Blog
  • DOCS
    Docs & Resources

    Guides, references, and answers for every Webstepper plugin.

    Smart Cycle Discounts Automated WooCommerce discount campaigns
    Getting started › Discount types › Cycle AI ›
    TrustLens Customer trust & fraud intelligence
    Trust scoring › Detection modules › Card-testing defense ›
    Docs Home Guides FAQ Pricing Support
    WordPress tools that solve real problems
  • Contact Us
  • About
    Company

    Our Story

    Founded 2020

    Built by store owners, for store owners. We create WordPress tools that solve real problems.

    Learn more
    Built from Experience Real solutions we use ourselves
    Time is Precious Simple, intuitive tools
    Real Support Talk to the founders
    Legal & Contact
    Contact Us Privacy Policy Terms of Service Refund Policy
    14-Day Money-Back Guarantee No questions asked
Popular requests
  • smart cycle discounts
  • trustlens
  • chargeback protection
GET STARTED

Glossary

1
  • TrustLens Glossary

Detection Modules

9
  • Card Testing Defense
  • Chargeback Tracking
  • Shipping Anomalies
  • Linked Accounts Detection
  • Category Aware Risk
  • Coupon Abuse Detection
  • Order Pattern Analysis
  • Return Abuse Detection
  • Modules Overview

Card Testing Defense

9
  • Attack History
  • Allowlists
  • Geo Diversity
  • Auto Escalation
  • Fingerprinting
  • VIP Bypass
  • Panic Button
  • Velocity Thresholds
  • Overview

Chargeback Monitor

7
  • Ratio Email Alerts
  • Dispute Evidence Report
  • Chargeback Monitor
  • Manual Dispute Entry
  • Stripe WooPayments Ingestion
  • Card Network Thresholds
  • Chargeback Ratio Speedometer

Customer Management

7
  • Admin Notes
  • Checkout Enforcement
  • Order Trust Column
  • Bulk Actions
  • Blocking and Allowlisting
  • Customer Detail Profile
  • Customer List

Automation

7
  • Async Dispatch Retries
  • Webhooks and HMAC
  • Rule Inspector
  • Actions Reference
  • Conditions Reference
  • Triggers Reference
  • Automation Overview

Trust Scoring

5
  • Account Age Loyalty Bonus
  • Signals Explained
  • Six Customer Segments
  • The 0–100 Score
  • How Trust Scoring Works
View Categories
  • Home
  • Docs
  • Trustlens
  • Automation
  • Conditions Reference

Conditions Reference

2 min read

Conditions are the filters that determine whether a rule’s actions fire. Each condition is a comparison against a field — typically a customer attribute, order property, or event-specific value. Conditions combine with AND logic; all must be true for the rule to act. This page lists every condition field available, the comparison operators each supports, and example expressions.


Anatomy of a Condition #

A condition has three parts:

  1. Field — what to compare. E.g. trust_score, order.total, customer.segment
  2. Operator — how to compare. E.g. >, =, in, contains
  3. Value — what to compare against. E.g. 30, "vip", ["risk", "critical"]

Example: trust_score < 30 — true when the customer’s score is below 30.


Customer Fields #

Field Type Operators
trust_score integer 0–100 =, ≠, <, ≤, >, ≥
segment enum (vip / trusted / normal / caution / risk / critical) =, ≠, in, not in
is_allowlisted boolean =
is_blocked boolean =
total_orders integer =, ≠, <, ≤, >, ≥
total_order_value decimal =, ≠, <, ≤, >, ≥
total_refunds integer =, ≠, <, ≤, >, ≥
total_refund_value decimal =, ≠, <, ≤, >, ≥
return_rate decimal 0–100 =, ≠, <, ≤, >, ≥
full_refunds integer =, ≠, <, ≤, >, ≥
cancelled_orders integer =, ≠, <, ≤, >, ≥
total_disputes integer =, ≠, <, ≤, >, ≥
disputes_won integer =, ≠, <, ≤, >, ≥
disputes_lost integer =, ≠, <, ≤, >, ≥
total_coupons_used integer =, ≠, <, ≤, >, ≥
first_order_coupons integer =, ≠, <, ≤, >, ≥
coupon_then_refund integer =, ≠, <, ≤, >, ≥
linked_accounts_count integer =, ≠, <, ≤, >, ≥
account_age_days integer =, ≠, <, ≤, >, ≥
days_since_last_order integer =, ≠, <, ≤, >, ≥

Order Fields #

Available in order-trigger contexts.

Field Type Operators
order.total decimal =, ≠, <, ≤, >, ≥
order.subtotal decimal =, ≠, <, ≤, >, ≥
order.shipping_total decimal =, ≠, <, ≤, >, ≥
order.tax_total decimal =, ≠, <, ≤, >, ≥
order.coupon_total decimal =, ≠, <, ≤, >, ≥
order.item_count integer =, ≠, <, ≤, >, ≥
order.payment_method string (stripe / paypal / etc.) =, in, not in
order.shipping_country string (ISO-2) =, in, not in
order.billing_country string =, in, not in
order.country_mismatch boolean =
order.has_coupon boolean =
order.status enum =, in, not in

Dispute Fields #

Available in chargeback-trigger contexts.

Field Type Operators
dispute.brand enum (visa / mastercard / amex / discover / other) =, in, not in
dispute.amount decimal =, ≠, <, ≤, >, ≥
dispute.reason string =, contains, starts with
dispute.status enum (open / under_review / won / lost / warning) =, in, not in
dispute.source enum (auto / manual) =

Fingerprint Fields #

Available in card-testing-trigger contexts.

Field Type Operators
fingerprint.decline_count_60s integer =, ≠, <, ≤, >, ≥
fingerprint.decline_count_10m integer =, ≠, <, ≤, >, ≥
fingerprint.is_allowlisted boolean =
fingerprint.country string (ISO-2) =, in, not in

Operators in Detail #

Comparison Operators #

=, ≠, <, ≤, >, ≥ — standard. Work on numeric and string fields.

Set Membership #

in, not in — value is a list. Example: dispute.brand in [visa, mastercard].

String Operators #

contains — substring match. starts with — prefix match. ends with — suffix match. Case-insensitive by default.

Boolean #

Just =. Example: is_blocked = false.


Multi-Condition Logic #

Conditions combine with AND only — all must be true for the rule to act. There’s no OR or grouped boolean logic at the rule level.

To express OR logic, create multiple rules with the same actions. Example: “block if score < 30 OR if disputes ≥ 2” becomes two rules, each with one condition, both with the same Block action.


Example Condition Sets #

Intent Conditions
“Critical customer placing high-value order” segment = critical AND order.total > 500
“Risk customer using international shipping” segment = risk AND order.country_mismatch = true
“Customer at chargeback threshold” total_disputes >= 2 AND disputes_lost >= 1
“New customer with first-order coupon abuse” total_orders < 5 AND first_order_coupons >= 2
“Recently-card-tested fingerprint completing order” customer.has_recent_card_testing_signal = true
“VIP placing unusually large order” segment = vip AND order.total > 3 * customer.avg_order_value

The Save-Time Validator and Conditions #

When you save a rule with conditions, the validator checks:

  • Each field is valid for the rule’s trigger context
  • Each operator is valid for the field’s type
  • The combined conditions are satisfiable (no contradictions like trust_score > 80 AND trust_score < 20)
  • The rule has at least one condition (or is explicitly marked “no conditions — fire on every trigger event”)

Invalid rules fail to save with a specific error message.


Performance #

Conditions evaluate against in-memory data — the trigger context plus the customer record (already fetched for the trigger event). Each condition is sub-millisecond. Even rules with 10+ conditions evaluate in under 10ms.

The engine is bound by trigger volume, not condition complexity.

Updated on June 4, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Actions ReferenceTriggers Reference
Table of Contents
  • Anatomy of a Condition
  • Customer Fields
  • Order Fields
  • Dispute Fields
  • Fingerprint Fields
  • Operators in Detail
    • Comparison Operators
    • Set Membership
    • String Operators
    • Boolean
  • Multi-Condition Logic
  • Example Condition Sets
  • The Save-Time Validator and Conditions
  • Performance
Newsletter

Insights that grow your business

Join thousands of WooCommerce store owners who get actionable tips, plugin updates, and industry news every week.

We respect your privacy. Unsubscribe at any time.

Weekly updates — Fresh content every Tuesday
Exclusive content — Tips you won't find on our blog
Early access — Be first to know about new plugins
Webstepper
Weekly WooCommerce Tips
Just now
This week: 5 proven strategies to boost your average order value using smart discount campaigns...
New issue!
Webstepper

Tools for store owners who'd rather grow than grind.

Simple, powerful plugins that help WooCommerce store owners sell more — without the learning curve.

500+ happy stores

Products

  • Smart Cycle Discounts
  • TrustLens
  • Discount Calculator
  • Sale Calendar

Company

  • About Us
  • Blog
  • Contact
  • Affiliates

Resources

  • Help Center
  • Guides
  • Affiliate Program
  • Become a Partner

Questions? We actually answer.

Real humans, real help. No bots, no runaround. Usually within a few hours.

Get in touch
Operated by Setmood LLC · 7901 4th St N, St Petersburg, FL 33702 · United States

© 2026 Webstepper. All rights reserved.

Privacy Terms Refunds
Visa Mastercard PayPal Apple Pay Google Pay & more
Limited Time Offer

Save 15% on
SCD, TrustLens & the Bundle

Smart Cycle Discounts and TrustLens — buy either plugin or grab both in the bundle. Use code at checkout.

WELCOME15
23 hours
:
59 minutes
:
59 seconds
Claim My Discount

Just want one? Smart Cycle Discounts · TrustLens

  • WordPress
    Back
    WordPress Plugins
    View all
    Smart Cycle Discounts logo

    Smart Cycle Discounts

    Automate discount campaigns with scheduling, analytics, and smart product targeting.

    7 Discount Types Cycle AI
    Free Pro from $59
    TrustLens logo

    TrustLens

    Customer trust intelligence for WooCommerce. Score customers, spot abuse, protect revenue.

    Trust Scores Abuse Detection
    Free Pro from $79

    New Plugin

    Coming Soon

    Something exciting is in the works. Join the waitlist to be first to know.

    Get Notified
    Notify Me
    Secure Checkout
    WordPress.org
    14-Day Refund
    Resources
    Documentation Guides & tutorials
    Discount Calculator Plan your strategy
    Support Get help
    SCD Changelog Discount plugin updates
    TrustLens Changelog Trust intelligence updates
    Get notified on new releases
  • Affiliate
    Back
    Program
    Overview How the program works
    How It Works 4 steps from apply to earn
    Commission Details 30% · 60-day cookie · recurring
    Get Started
    Apply Now Open
    Takes ~2 minutes
    Earnings Calculator Estimate your monthly income
    FAQ Payouts, cookies, renewals
    Resources
    Brand Kit Logos, banners, copy, social
    Playbook Tactics that actually convert
    FTC Disclosure How to disclose properly
    Affiliate Terms Full program agreement
    Contact Team Open the contact form
    Earn 30% recurring on every sale Free to join · 60-day cookie · monthly PayPal payouts
    Apply Now
  • Blog
  • DOCS
    Back
    Docs & Resources

    Guides, references, and answers for every Webstepper plugin.

    Smart Cycle Discounts Automated WooCommerce discount campaigns
    Getting started › Discount types › Cycle AI ›
    TrustLens Customer trust & fraud intelligence
    Trust scoring › Detection modules › Card-testing defense ›
    Docs Home Guides FAQ Pricing Support
    WordPress tools that solve real problems
  • Contact Us
  • About
    Back
    Company

    Our Story

    Founded 2020

    Built by store owners, for store owners. We create WordPress tools that solve real problems.

    Learn more
    Built from Experience Real solutions we use ourselves
    Time is Precious Simple, intuitive tools
    Real Support Talk to the founders
    Legal & Contact
    Contact Us Privacy Policy Terms of Service Refund Policy
    14-Day Money-Back Guarantee No questions asked
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies.
More info More info Accept