Skip to main content
Ends with checks whether text finishes with your suffix — common for file extensions, email domains, and structured IDs. Matching is case-insensitive. Text fields only.

When to choose this


Exact behavior

  • Both actual and expected must be non-empty strings.
  • Case-insensitive suffix via mb_strtolower / str_ends_with.
  • Null, non-string, or empty source → no match.
  • Empty suffix in rule → fail-closed.

Which field types


Blank / unanswered answers

Does not match.

Configure in Studio

1

Open a rule

Logic → Rules, or Branch / Add condition on a field.
2

Pick text field

Email, filename, account number, etc.
3

Choose Ends with

Text operators only.
4

Enter suffix

e.g. .pdf, @partner.com, -EU
5

Add Then actions

6

Test suffix placement on Fill


Worked examples

Corporate email domain

When Work email ends with @acme.com → Then Show blocks Employee ID
[email protected] matches; @acme.com.evil.com does not.

PDF upload name (text field)

When Filename ends with .pdf → Then Show blocks PDF disclaimer
For actual file blocks, use Is not empty on the file field.

Regional SKU

When Product code ends with -EU → Then Show blocks GDPR notice

Student email

When Email ends with .edu → Then Show blocks Student discount

Test on fill

1

Suffix at end

Rule on.
2

Suffix in middle only

Rule off.
3

Case variants

Match regardless of case.
4

Empty

Rule off.

Common mistakes

  • Using Contains @acme.com when domain must be true suffix — Ends with is stricter.
  • Applying to file upload blocks — use presence empty/not empty; filename may be separate text field.
  • Empty suffix in rule.

Troubleshooting

Use Ends with not Contains to avoid @acme.com.attacker.net.
Spaces before suffix break match — test realistic typing on Fill.
Multibyte suffixes supported via mb_strtolower.
Last modified on September 7, 2026