--- title: "In list" slug: "core-in-matcher" updated: 2026-04-27T09:59:03Z published: 2026-04-27T09:59:03Z canonical: "docs.lobstersoftware.com/core-in-matcher" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # In list *See also:* [Equals](/v1/docs/en/core-equals-matcher) ![images/download/attachments/201667789/image-2025-4-8_11-45-55-version-1-modificationdate-1744105554743-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-45-55-version-1-modificationdate-1744105554743-api-v2.png) The [In list](/v1/docs/en/core-in-matcher) compare type checks in the context of an [Entity property rule](/v1/docs/en/core-entity-property-rule) whether the "List" (`List`, `Set`, `Array`) defined as a *Compare value* (value configuration on the right) contains at least one entry that passes an [Equals](/v1/docs/en/core-equals-matcher) comparison with the *Check* *value* (value configuration on the left). - If the *Compare value* (right) is not a "List" (`List`, `Set`, `Array`), it is used directly. - If the data type of entries in the *Compare value* differs from the data type of the *Check value*, a type conversion to the type of the *Check value* is attempted in the same way as described for the [Equals](/v1/docs/en/core-equals-matcher) compare type. This also applies to the case where the *Check value* is a list. - For the comparison of data objects, the logic of an [Equals](/v1/docs/en/core-equals-matcher) comparison with the **Deep compare** option switched off applies. --- > [!WARNING] > **IMPORTANT:** > > The [In list](/v1/docs/en/core-in-matcher) compare type relies on the logic of the [Equals](/v1/docs/en/core-equals-matcher) compare type. A robust understanding of the details and peculiarities of the [Equals](/v1/docs/en/core-equals-matcher) compare type is strongly recommended as a basis for the safe use of the [In list](/v1/docs/en/core-in-matcher) compare type. --- Specific example: | Check value (JSON notation) | Compare value (JSON notation) | Check result | Comments | | --- | --- | --- | --- | | `"DEF"` | `["ABC","DEF","GHI"]` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | List in *Compare value* contains the *Check value* (direct) | | `4600` | `["3591","04600","39052"]` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | The second list entry in the *Compare value* is converted to the integer `4600` defined as the *Check value*. | | `32` | `["32.1608", "32.0"]` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | The second list entry in the *Compare value* is converted to the integer `32` defined as the *Check value*. | | `32` | `[31.999, 32.1608]` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | The second list entry in the *Compare value* is converted to the integer `32` defined as the *Check value*. | | `["EDME"]` | `["LOWS", "EDME", "EDMQ"]` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | The third list entry in the *Compare value* is converted to the list defined as the *Check value* (with one entry). | | `["EDME"]` | `"EDME"` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | The *Compare value* (`String`) is converted to the *Check value* defined list (with one entry). | | `["EDML", "EDMV", "EDMY"]` | `["EDMV", "EDMY"]` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) true | None of the list entries in the *Compare value* matches the list provided as the *Check value*. | | `["LEPA", "EDDM"]` | `[["EDDM", "LOWI"], ["LEPA", "EDDM"]]` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | The second list entry in the *Compare value* matches the list defined as the *Check value* with two entries. | | `"[LEPA, EDDM]"` | `[["EDDM", "LOWI"], ["LEPA", "EDDM"]]` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | The second list entry in the *Compare value* returns the string defined as the *Check value* as a `String` image. | | `"[EDDM,LOWI]"` | `[["EDDM", "LOWI"], ["LEPA", "EDDM"]]` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) false | None of the list entries in the *Compare value* returns exactly the `String` defined as the *Check value* as a string image. Specifically, to match the first entry, the space after the comma is missing. | | **Comparison of "client objects":** | | `{"name":"robinson"}` | `[{"name":"friday"}, {"name":"robinson"}]` | *in server context:* ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true --- in [Client Workflow](/v1/docs/en/frebehav-client-workflow): ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-P6QB1D9O.png) false/true | In a *server-side execution context* (within [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration), [Association criteria](/v1/docs/en/core-association-criteria), etc.) data objects are basically compared by *content*, i.e. by their specific property values. --- In a [Client Workflow](/v1/docs/en/frebehav-client-workflow), a "Client object" is only recognized as "equal" if it is the same "Client object". A comparison of the *contents* does not take place. | | *We create the two "Client objects" from the list in the compare value (above) in advance and assign them to two variables (named* `robinson` *and* `friday`*).* | | ![images/download/attachments/201667789/image-2025-4-8_11-46-45-version-1-modificationdate-1744105605346-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-46-45-version-1-modificationdate-1744105605346-api-v2.png) | ![images/download/attachments/201667789/image-2025-4-8_11-47-0-version-1-modificationdate-1744105619942-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-47-0-version-1-modificationdate-1744105619942-api-v2.png) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | Since in this example the list entries refer by reference to the "Client objects" created in advance, the [In list](/v1/docs/en/core-in-matcher) comparison is also considered to have passed in the [Client Workflow](/v1/docs/en/frebehav-client-workflow). For the [Client Workflow](/v1/docs/en/frebehav-client-workflow), the comparison appears like this: - (Object-A) [In list](/v1/docs/en/core-in-matcher) (Object-B, Object-A) | | ![images/download/attachments/201667789/image-2025-4-8_11-47-24-version-1-modificationdate-1744105644168-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-47-24-version-1-modificationdate-1744105644168-api-v2.png) | ![images/download/attachments/201667789/image-2025-4-8_11-47-40-version-1-modificationdate-1744105659911-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-47-40-version-1-modificationdate-1744105659911-api-v2.png) | *in server context:* ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true --- in [Client Workflow](/v1/docs/en/frebehav-client-workflow): ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) false | The server compares *content* and recognizes the match. --- For the [Client Workflow](/v1/docs/en/frebehav-client-workflow), the comparison appears like this: - (Object-A) [In list](/v1/docs/en/core-in-matcher) (Object-B, Object-C) Whether or not the *content* of Object-A is the same as Object-C is simply not examined. | | ![images/download/attachments/201667789/image-2025-4-8_11-48-14-version-1-modificationdate-1744105694098-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-48-14-version-1-modificationdate-1744105694098-api-v2.png) | ![images/download/attachments/201667789/image-2025-4-8_11-47-48-version-1-modificationdate-1744105668129-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-47-48-version-1-modificationdate-1744105668129-api-v2.png) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) false | In this variant, the "Client object" in the *Check value* is converted to a `String` by an [Object to JSON](/v1/docs/en/core-json-encode-resolver). It is wrong to expect that the "Client objects" listed in the *Compare value* will be automatically converted to JSON `Strings` for the [In list](/v1/docs/en/core-in-matcher) comparison. In fact, a `String` image of each "Client object" from the *Compare value* is used for comparison, but it does not reflect the JSON format. The following variant, on the other hand, leads to the goal. | | ![images/download/attachments/201667789/image-2025-4-8_11-48-24-version-1-modificationdate-1744105704449-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-48-24-version-1-modificationdate-1744105704449-api-v2.png) | ![images/download/attachments/201667789/image-2025-4-8_11-48-55-version-1-modificationdate-1744105735219-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-48-55-version-1-modificationdate-1744105735219-api-v2.png) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | With this variant, the *content* comparison of "Client objects" can be enforced independently of the execution context (client/server) by comparing their JSON format image as a string instead of the objects involved. The list of "Client objects" in the *Compare value* is converted by the concatenated [Collect values](/v1/docs/en/core-collect-resolver) resolver into a list of `String` values that map the listed objects into JSON notation. The **Value to collect** is defined via the [Object to JSON](/v1/docs/en/core-json-encode-resolver) value resolver, ensuring that the notation in detail matches the JSON string generated as the *Check value* if a *content*-matching "Client object" is listed in the *Compare value*. | **NOTE:** A check for the presence in a list of a "Client object" whose *content* matches the *Check value* can alternatively be achieved with a rule configuration like the following one: | The [In list](/v1/docs/en/core-in-matcher) compare type is purposefully not used here so that the check of the list provides the same results regardless of the *execution context* (server/client): - The list of "Client objects" provided as a *Compare value* in an [In list](/v1/docs/en/core-in-matcher) comparison is configured on the right as the *input* *value* for a [Rule list resolver](/v1/docs/en/core-list-rule-resolver), which provides the *Check value* for an [Is empty](/v1/docs/en/core-is-empty-matcher) comparison negated by the [not (Matcher)](/v1/docs/en/core-not-matcher) within the *outer* [Entity property rule](/v1/docs/en/core-entity-property-rule). - The *inner* [Entity property rule](/v1/docs/en/core-entity-property-rule) (in the [Rule list resolver](/v1/docs/en/core-list-rule-resolver)) compares the `entity` variable (*here*: list entry from the *input value*) as the *Check value* with the "Client object" as the *Compare value*, which would have served as the *Check value* in the corresponding [In list](/v1/docs/en/core-in-matcher) comparison, in an [Equals](/v1/docs/en/core-equals-matcher) comparison with the **Deep compare** option switched on. This may sound complicated, but it is really quite simple: The rule is passed if the list from the *input value* contains a "Client object" as an entry that matches the *content* of the object searched for. This is because it is then considered to be the *Check value* for the *outer* [Entity property rule](/v1/docs/en/core-entity-property-rule), which satisfies the not ([Is empty](/v1/docs/en/core-is-empty-matcher)) condition. | ![images/download/attachments/201667789/image-2025-4-8_11-50-8-version-1-modificationdate-1744105807997-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-50-8-version-1-modificationdate-1744105807997-api-v2.png) | | --- | --- | ## Configuration The value configurations for the *Check value* and the *Compare value* are not optional for the [In list](/v1/docs/en/core-in-matcher) compare type. | As soon as the [In list](/v1/docs/en/core-in-matcher) compare type is selected for an instance of the [Entity property rule](/v1/docs/en/core-entity-property-rule), the default value configuration for the *Compare value* (a [Create list](/v1/docs/en/core-create-list-resolver) value resolver without entries) shown on the right appears – if applicable, instead of an existing value configuration for the *Compare value* (right). | *![images/download/attachments/201667789/image-2025-4-8_11-46-3-version-1-modificationdate-1744105563267-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-46-3-version-1-modificationdate-1744105563267-api-v2.png)* | | --- | --- | | In the automatically added [Create list](/v1/docs/en/core-create-list-resolver) resolver, value configurations for list entries can be assigned by clicking on the symbol. Clicking on the symbol removes an existing entry for a value configuration. | *![images/download/attachments/201667789/image-2025-4-8_11-51-27-version-1-modificationdate-1744105887557-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-51-27-version-1-modificationdate-1744105887557-api-v2.png)* | | However, instead of the default value configuration, any other value configuration can be used that provides one or more suitable *Compare values* at runtime. | ![images/download/attachments/201667789/image-2025-4-8_11-52-12-version-1-modificationdate-1744105931734-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-52-12-version-1-modificationdate-1744105931734-api-v2.png) | ## Examples ### Simple example: Static positive list for values of a dynamic enumeration An association criteria (see [Association criteria](/v1/docs/en/core-association-criteria)) is considered passed in the context of a user (see [Users](/v1/docs/en/base-user)) if the selection for the "Locale" (`locale`) property is contained in a statically stored positive list. Configuration: | The association criteria uses the AND conjunction of two rules as shown on the right: - The initial [Check type](/v1/docs/en/core-check-type-rule) ensures that there is a user as the *reference object*. Only then is the second rule checked. - The [Entity property rule](/v1/docs/en/core-entity-property-rule) performs an [In list](/v1/docs/en/core-in-matcher) comparison between the language selection for the user account in the *input value* and the statically defined positive list: - The "Locale" (`locale`) property of the given user is used as the *Check value* (left), which is read by the [Object property](/v1/docs/en/core-property-resolver) value resolver. - After selecting the [In list](/v1/docs/en/core-in-matcher) comparison type (below), the [Create list](/v1/docs/en/core-create-list-resolver) value resolver is automatically suggested for the *Compare value* (right). In this, the static positive list can simply be created by assigning a value from the dynamic enumeration [Locale](/v1/docs/en/core-locale) to each entry. The selection allows one instance of the [Any enumeration](/v1/docs/en/core-any-dynamic-enum-value-editor) value resolver at a time. | ![images/download/attachments/201667789/image-2025-4-8_11-52-45-version-1-modificationdate-1744105964636-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-52-45-version-1-modificationdate-1744105964636-api-v2.png) | | --- | --- | ### More complex example: Could I login as the owner of a given entity? An association criteria (see [Association criteria](/v1/docs/en/core-association-criteria)) is considered to have passed in the context of an entity of any type exactly when the owner of that entity is a company (see [Companies/Clients](/v1/docs/en/base-company-account)) that is available to the [User of session](/v1/docs/en/base-session-user-value) when logging on to a session. The condition is fulfilled if the `Long` value specified in the "Owner" (`ownerId`) property of the entity can be found as an entry in the "Companies" (`companies`) list property of the relevant user account (see [Users](/v1/docs/en/base-user)). Configuration: | The association criteria uses the AND conjunction of two rules as shown on the right: - The initial [Check type](/v1/docs/en/core-check-type-rule) ensures that the *reference object* is an entity of any type. Only then is the second rule checked. - The [Entity property rule](/v1/docs/en/core-entity-property-rule) performs a comparison with the [In list](/v1/docs/en/core-in-matcher) compare type: - The *Check value* (left) is provided by the "Owner" (`ownerId`) property of the entity present as the *reference object* via an [Object property](/v1/docs/en/core-property-resolver) value resolver. - As a *Compare value* (right), the "Companies" (`companies`) list property from the user account that is considered user of session is used via an object property value resolver. **NOTE:** In the course of the value resolver chain, the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) resolver is first used to explicitly refer to the specific "User" entity type, while the [User of session](/v1/docs/en/base-session-user-value) could also be a "Guest user" account (see [Guest users](/v1/docs/en/base-guest-user)). | ![images/download/attachments/201667789/image-2025-4-8_11-53-31-version-1-modificationdate-1744106010921-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-53-31-version-1-modificationdate-1744106010921-api-v2.png) | | --- | --- | If the association criteria is also used for [Guest users](/v1/docs/en/base-guest-user), it is necessary to take into account that no list of companies can be associated with a guest user. Instead of the "Company" list property, the guest user account uses a "Company" (`companyId`) property for which exactly one `Long` value can be selected. This configuration variant for the *Compare value* utilizes the option of using either a list or a single value as the *Compare value* for an [In list](/v1/docs/en/core-in-matcher) comparison: | If the [User of session](/v1/docs/en/base-session-user-value) is a guest user, the first three value resolvers in the chain, which are identical to the above configuration, will return "no value" (`$null`). On this basis, the specific treatment for [Guest users](/v1/docs/en/base-guest-user) can be controlled by the [Default value](/v1/docs/en/core-default-value-resolver) resolver attached to the chain. As the image on the right shows, the value resolver chain in its **Default value** parameter is structured in the same way as before: - For the return value from the [User of session](/v1/docs/en/base-session-user-value) value resolver this time the "Guest user" type is assigned by selection in the concatenated [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver. - In the concatenated [Object property](/v1/docs/en/core-property-resolver) value resolver, the specific property "Company" (`companyId`) can then be selected for the guest user. **NOTE:** The return value type for the chain is still the `Long[]` data type, whereas the **Default value** within the [Default value](/v1/docs/en/core-default-value-resolver) resolver refers to the data type `long`. However, this does not affect the behavior at runtime: The [In list](/v1/docs/en/core-in-matcher) matcher will always compare a single compare value directly with the check value. | ![images/download/attachments/201667789/image-2025-4-8_11-54-14-version-1-modificationdate-1744106054569-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-54-14-version-1-modificationdate-1744106054569-api-v2.png) | | --- | --- | | Accessing the "Company" property via the [Object property](/v1/docs/en/core-property-resolver) value resolver can alternatively be done in the context of a [Collect values](/v1/docs/en/core-collect-resolver) resolver. Since the guest user account passed as *input value* is not a list, again only a single value ("Company") is read. However, this is returned as the only entry in a list, so during configuration the `Long[]` type of return value appears consistently. This additional processing step in the value resolver chain creates transparency in the configuration, even if nothing changes in the effective logic at runtime. **NOTE:** Indirect case discrimination via [Default value](/v1/docs/en/core-default-value-resolver) resolvers within a common value resolver chain solves the problem and results in a relatively compact configuration. For the benefit of more transparency and "readability" in the configuration, an explicit case distinction could be configured within a [With rule](/v1/docs/en/core-with-rule) instead, which recognizes the [User of session](/v1/docs/en/base-session-user-value) as either a "User" or "Guest user" based on a [Check type](/v1/docs/en/core-check-type-rule) and then makes a specific comparison with the entity's "Owner" ID. Then the [In list](/v1/docs/en/core-in-matcher) comparison type must be used only for [Users](/v1/docs/en/base-user), while for [Guest users](/v1/docs/en/base-guest-user) an [Equals](/v1/docs/en/core-equals-matcher) comparison is sufficient. | ![images/download/attachments/201667789/image-2025-4-8_11-54-45-version-1-modificationdate-1744106085414-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-8_11-54-45-version-1-modificationdate-1744106085414-api-v2.png) |