--- title: "Starts with" slug: "core-starts-with-matcher" updated: 2026-04-27T08:49:27Z published: 2026-04-27T08:49:27Z canonical: "docs.lobstersoftware.com/core-starts-with-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. # Starts with *See also:* [Ends with](/v1/docs/en/core-ends-with-matcher), [Contains](/v1/docs/en/core-contains-matcher) ![images/download/attachments/201666737/image-2025-4-1_15-30-1-version-1-modificationdate-1743514201440-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-1_15-30-1-version-1-modificationdate-1743514201440-api-v2.png) The [Starts with](/v1/docs/en/core-starts-with-matcher) compare type checks if the text (`String`) given as the *Check value* (value configuration on the left) starts exactly with the string (`String`) defined as the *Compare value* (value configuration on the right). - The screenshot above uses static text value resolvers (see [Static values](/v1/docs/en/core-literal-value-resolver)) with the texts "Check value" and "Compare value" to illustrate the interaction of the components. **NOTE:** - The text comparison is case sensitive. - There is no automatic conversion of unsuitable values to text (`String`). When required, the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver or a suitable value resolver from the [String processing](/v1/docs/en/orchestration-resolvers-text) category can be used to convert another data type into a string. Special cases: - The check is considered failed if at least one of the value configurations (*Check value*, C*ompare value*) does not return a `String`. - Since "no value" (`$null`) is also not a `String`, a check like (`$null`) [Starts with](/v1/docs/en/core-starts-with-matcher) (`$null`) is considered failed. - If the *Check value* and the *Compare value* completely match, a [Starts with](/v1/docs/en/core-starts-with-matcher) comparison is considered passed. - An empty string (`""`) can be used as a *Check value* and as a *Compare value*. A check with `""` as a *Compare value* will always pass if the *Check value* is a `String`. Specific examples: | Check value (JSON notation) | Compare value (JSON notation) | Check result | Comments | | --- | --- | --- | --- | | `"123.45"` | `"123.45"` | ![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 | *Check value* [Starts with](/v1/docs/en/core-starts-with-matcher) the *Compare value* | | `"123.45"` | `"12"` | ![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 | *Check value* [Starts with](/v1/docs/en/core-starts-with-matcher) the *Compare value* | | `"123.45"` | `"11"` | ![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 | *Check value does not start with the Compare value* | | `""` | `"12"` | ![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 | *Check value does not start with the Compare value* | | `123.45` | `"12"` | ![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 | *Check value* is not a `String` | | `$null` | `"12"` | ![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 | *Check value* is not a `String` | | `"123.45"` | `12` | ![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 | *Compare value* is not a `String` | | `"123.45"` | `$null` | ![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 | *Compare value* is not a `String` | | `"123.45"` | `""` | ![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 | *Check value* [Starts with](/v1/docs/en/core-starts-with-matcher) the *Compare value* | | `$null` | `$null` | ![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 | *Check value is not a* `String` *Compare value is not a* `String` | | `""` | `""` | ![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 | *Check value* [Starts with](/v1/docs/en/core-starts-with-matcher) the *Compare value* | ## Configuration The value configurations for *Check value* (left) and *Compare value* (right) are not optional for the [Starts with](/v1/docs/en/core-starts-with-matcher) compare type. Both value configurations must return strings (`String`) at runtime, otherwise the [Entity property rule](/v1/docs/en/core-entity-property-rule) is considered failed. ## Examples ### Evaluate a text input An [Entity property rule](/v1/docs/en/core-entity-property-rule) evaluates a [User prompt](/v1/docs/en/frebehav-user-prompt) so that any input that does not begin with the letter "n" (or "N") is evaluated as `false` ("reject") and all others (except "") are evaluated as `true` ("agree"). **NOTE:** There are, of course, more effective ways to query a purely "binary" decision from a user, such as the [User callback](/v1/docs/en/core-user-callback-actor) event action. After all, a user might also want to express his "agreement" by typing "Of course!". In this respect, this example is intended to demonstrate the use of the [Starts with](/v1/docs/en/core-starts-with-matcher) value resolver rather than *best* *practice* in **Lobster Data Platform/Orchestration**. Configuration: | Within an [Entity property rule](/v1/docs/en/core-entity-property-rule), the following value resolvers are concatenated in the *Check value* (left): - The [User prompt](/v1/docs/en/frebehav-user-prompt) value resolver provides the input from the user. Details of the configuration are omitted here. - The concatenated [Default value](/v1/docs/en/core-default-value-resolver) resolver defines the text "n" as default in cases where the user does not enter anything. - The [Trim](/v1/docs/en/core-trim-string-resolver) value resolver removes marginal spaces, which should be considered as unintentional input here. - The [Lower case](/v1/docs/en/core-to-lower-case-resolver) value resolver replaces all uppercase letters with lowercase ones, so that the check with [Starts with](/v1/docs/en/core-starts-with-matcher) compare type acts indifferently for upper and lower case. On the right, the lowercase letter "n" (see [Static values](/v1/docs/en/core-literal-value-resolver)) is juxtaposed as a *Compare value*. **NOTE:** As can be seen from the label "not(...)" in the image, the [Starts with](/v1/docs/en/core-starts-with-matcher) compare type is negated here (see [not (Matcher)](/v1/docs/en/core-not-matcher)), so that the check is considered passed if the [User prompt](/v1/docs/en/frebehav-user-prompt) does not start with "n". | ![images/download/attachments/201666737/image-2025-4-1_15-28-59-version-1-modificationdate-1743514139478-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-1_15-28-59-version-1-modificationdate-1743514139478-api-v2.png) | | --- | --- | ### Compare two text files It is determined whether a text file `version.txt` was (or at least could be) created by "extending" another file `original.txt` in the context of an event handling. Both files already exist as uploads in a server file system path readable by **Lobster Data Platform/Orchestration**. Configuration: | Within an [Entity property rule](/v1/docs/en/core-entity-property-rule), two instances of the [File reference](/v1/docs/en/core-file-reference-content-builder) value resolver are used to access the files to be compared (in a subdirectory `test` of the designated upload folder for **Lobster Data Platform/Orchestration**). The [File reference](/v1/docs/en/core-file-reference-content-builder) value resolver primarily returns a "Content" object as return value, which represents the plain text of a text file as a *byte array* (`byte[]`) in the `body` field. However, this *byte array* also forms the basis for the *string image* of the "Content" object by default. Therefore, for a text file the concatenated [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver with the `String` "type" provides the plain text relevant for the comparison. | ![images/download/attachments/201666737/image-2025-4-1_15-27-14-version-1-modificationdate-1743514034615-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-1_15-27-14-version-1-modificationdate-1743514034615-api-v2.png) | | --- | --- | **NOTE:** The [Entity property rule](/v1/docs/en/core-entity-property-rule) with the [Starts with](/v1/docs/en/core-starts-with-matcher) compare type is also considered to have passed if the contents of the `version.txt` file are identical to `original.txt`. In order to reliably ensure – as formulated above – whether the original file was actually "extended", it must therefore be excluded in the context of an AND conjunction by an additional condition that the file contents are identical (e.g. with [not (Matcher)](/v1/docs/en/core-not-matcher) and [Equals](/v1/docs/en/core-equals-matcher)).