Flow reference: Logic
If / Else
Create conditional branches.
Create conditional branches.
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
Variable — variable
Value to evaluate in this condition. Resolve the source variable before choosing the comparison operator.
Input: Text with variable suggestions.
Format example, not a ready value for your server:
{user.id}.Default:
{user}.Operator — operator
Choose the comparison or arithmetic operation. Match input types and test both a matching and non-matching case.
Input: Fixed choice.
Default:
equals.Available choices (preserve the exact value):
equals — equalsnot-equals — not equalscontains — containsnot-contains — does not containgt — greater thanlt — less thanhas-role — has rolenot-has-role — does not have roleValue — 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).
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).