Flow reference: Logic

Contains

Check whether text contains a value.

Check whether text contains a value.

When and how to use it

Connect the input from the preceding step on the path that should perform this operation.
Fill the fields with data available in the trigger's context.
Connect the needed outputs; an unconnected path cannot run later blocks.

Configuration fields

Text — text


Text input for this check, transformation or suggestion. If it comes from a member, avoid treating it as trusted code or configuration.

Input: Text with variable suggestions.

Default: {message.content}.


Contains — value


The value to store, compare or process. Use the required type and a variable only after the source block has run.

Input: Text with variable suggestions.

Default: ``.

Outputs and next steps

true: The condition matched.
false: The condition did not match.

Test and troubleshoot

Invoke the correct trigger with simple inputs and verify the expected effect. Confirm variables exist on this path. A preview alone does not verify Discord delivery.

Save, validate and publish. Perform one real test and read the first relevant log error. [Testing](/docs/flow-testing) · [Variables](/docs/flow-variables) · [Permissions](/docs/flow-permissions).