String Check
The String Check compares two string values using a comparison operation you choose. It supports several operations including exact equality, substring matching, prefix and suffix checks, and regular expression matching. This is a versatile node for filtering and branching based on text content.
If the comparison evaluates to true, the data flows down the True path. Otherwise, it goes down the False path.
Inputs
| Name | Type | Description |
|---|---|---|
A | string | The first string (the value being tested). |
B | string | The second string (the value to compare against). |
Outputs
| Name | Type | Description |
|---|---|---|
True | string | The value of A, if the comparison is true. |
False | string | The value of A, if the comparison is false. |
Configuration
- Operation: The comparison to perform. Options:
- Equals - True if A is exactly equal to B.
- Contains - True if A contains B as a substring.
- Starts With - True if A starts with B.
- Ends With - True if A ends with B.
- Regex - True if A matches the regular expression pattern in B.
Example
Use the String Check after a Category Change trigger to detect when you switch to a specific game. Set the operation to "Equals" and B to "Just Chatting." When the category matches, the True path fires and you can enable your chatting-specific overlays. When it does not match, the False path lets you set up game-specific overlays instead.