Phonenumber

Equals

  • Definition: Checks if the phone number is exactly equal to a specific value.

  • Use Case: Useful for exact matches.

    • Example: Filter users whose phone number is +31 6 12345678.

      • phone Equals "+31 6 12345678" → Matches users with that exact phone number.

NotEquals

  • Definition: Checks if the phone number is not equal to a specific value.

  • Use Case: Excludes specific phone numbers.

    • Example: Exclude users whose phone number is +31 6 12345678.

      • phone NotEquals "+31 6 12345678" → Excludes users with that exact phone number.

EqualsOneOf ("In" Filter)

  • Definition: Checks if the phone number matches one of the values in a predefined list.

  • Use Case: Useful for matching multiple specific phone numbers.

    • Example: Filter users whose phone number is +31 6 12345678, +44 20 79460789, or +1 555 1234567.

      • phone EqualsOneOf ["+31 6 12345678", "+44 20 79460789", "+1 555 1234567"] → Matches any of the listed phone numbers.

EqualsNoneOf ("NotIn" Filter)

  • Definition: Checks if the phone number matches none of the values in a predefined list.

  • Use Case: Excludes multiple specific phone numbers.

    • Example: Exclude users whose phone number is +31 6 12345678 or +44 20 79460789.

      • phone EqualsNoneOf ["+31 6 12345678", "+44 20 79460789"] → Excludes users with those phone numbers.

Contains

  • Definition: Checks if the phone number contains a specific substring.

  • Use Case: Useful for partial matches, such as filtering by area code or country code.

    • Example: Filter users whose phone number contains "123".

      • phone Contains "123" → Matches +31 6 12345678, +1 555 1234567.

NotContains

  • Definition: Checks if the phone number does not contain a specific substring.

  • Use Case: Excludes phone numbers with certain substrings.

    • Example: Exclude users whose phone number contains "555".

      • phone NotContains "555" → Excludes +1 555 1234567.

StartsWith

  • Definition: Checks if the phone number starts with a specific substring.

  • Use Case: Useful for filtering by country code or region.

    • Example: Filter users whose phone number starts with "+31" (Netherlands).

      • phone StartsWith "+31" → Matches +31 6 12345678, +31 20 1234567.

EndsWith

  • Definition: Checks if the phone number ends with a specific substring.

  • Use Case: Useful for filtering by specific patterns or extensions.

    • Example: Filter users whose phone number ends with "5678".

      • phone EndsWith "5678" → Matches +31 6 12345678, +44 20 7945678.

IsEmpty

  • Definition: Checks if the phone number field is empty (i.e., no value is present).

  • Use Case: Useful for identifying users with missing or incomplete phone data.

    • Example: Filter users who have not provided a phone number.

      • phone IsEmpty → Matches users with no phone number value.

IsNotEmpty

  • Definition: Checks if the phone number field is not empty (i.e., a value is present).

  • Use Case: Useful for ensuring that all users have a phone number.

    • Example: Filter users who have provided a phone number.

      • phone IsNotEmpty → Matches users with a phone number value.