Link Search Menu Expand Document

πŸ– Compare (String)

PCGEx | Filter : Compare (String)

Compares two string-like attributes against each other.

-


Filter
A single filter definition

Table of content


The Compare (String) compares two string-like attributes against each other.

details/filter-ecosystem/filter-compare-string-lead.png

Properties


Property Description
Operand A
Operand A The first attribute of the comparison.
Comparison
Comparison How to compare A against B.
See String comparisons.
Operand B
Compare Against Type of operand B. Can be a per-point Attribute, or an easily overridable Constant.
Operand B
(Constant or Attribute)
Operand B’ value.
Tolerance Equality tolerance for near-value comparisons.

Comparison modes


Comparison Data
== Strictly equal.
!= Strictly not equal.
== (Length) String lengths are strictly equal.
!= (Length) String lengths are strictly not equal.
>= (Length) String length is equal or greater.
<= (Length) String lengths are is equal or smaller.
> (Length) String lengths is strictly greater.
< (Length) String lengths is Strictly smaller.
> (Locale) String locale is strictly greater.
In alphabetical order. (Z is greater than A)
< (Locale) String locale is strictly smaller.
In alphabetical order. (A is smaller than Z)
Contains Check if string is contained in another one.
Useful if you have solid naming conventions.
Starts With Check if the string starts with another one.
Useful for prefixes.
Ends With Check if the string ends with another one.
Useful for suffixes.