Contains
-
Definition: Checks if the locale contains a specific substring.
-
Use Case: Useful for partial matches, such as filtering by language or region.
-
Example: Filter users whose locale contains "en" (English).
-
locale Contains "en"→ Matchesen-US,en-GB,en-AU.
-
-
NotContains
-
Definition: Checks if the locale does not contain a specific substring.
-
Use Case: Excludes locales with certain substrings.
-
Example: Exclude users whose locale contains "fr" (French).
-
locale NotContains "fr"→ Excludesfr-FR,fr-CA.
-
-
EndsWith
-
Definition: Checks if the locale ends with a specific substring.
-
Use Case: Useful for filtering by region.
-
Example: Filter users whose locale ends with "US" (United States).
-
locale EndsWith "US"→ Matchesen-US,es-US.
-
-
StartsWith
-
Definition: Checks if the locale starts with a specific substring.
-
Use Case: Useful for filtering by language.
-
Example: Filter users whose locale starts with "nl" (Dutch).
-
locale StartsWith "nl"→ Matchesnl-NL,nl-BE.
-
-
Equals
-
Definition: Checks if the locale is exactly equal to a specific value.
-
Use Case: Useful for exact matches.
-
Example: Filter users whose locale is "en-US" (English, United States).
-
locale Equals "en-US"→ Matchesen-US.
-
-
NotEquals
-
Definition: Checks if the locale is not equal to a specific value.
-
Use Case: Excludes specific locales.
-
Example: Exclude users whose locale is "fr-FR" (French, France).
-
locale NotEquals "fr-FR"→ Excludesfr-FR.
-
-
EqualsOneOf ("In" Filter)
-
Definition: Checks if the locale matches one of the values in a predefined list.
-
Use Case: Useful for matching multiple specific locales.
-
Example: Filter users whose locale is either "en-US", "en-GB", or "en-AU".
-
locale EqualsOneOf ["en-US", "en-GB", "en-AU"]→ Matchesen-US,en-GB,en-AU.
-
-
EqualsNoneOf ("NotIn" Filter)
-
Definition: Checks if the locale matches none of the values in a predefined list.
-
Use Case: Excludes multiple specific locales.
-
Example: Exclude users whose locale is "fr-FR" or "fr-CA".
-
locale EqualsNoneOf ["fr-FR", "fr-CA"]→ Excludesfr-FR,fr-CA.
-
-
IsEmpty
-
Definition: Checks if the locale field is empty (i.e., no value is present).
-
Use Case: Useful for identifying users with no locale set.
-
Example: Filter users who have not set a locale.
-
locale IsEmpty→ Matches users with no locale value.
-
-