Flow reference: Logic

Compare

Compare two values numerically.

Compare two values numerically.

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

Left value — left


First input to compare or calculate. Resolve variables before assuming this value is numeric.

Input: Text with variable suggestions.

Default: ``.


Operator — operator


Choose the comparison or arithmetic operation. Match input types and test both a matching and non-matching case.

Input: Fixed choice.

Default: gt.

Available choices (preserve the exact value):
gt — >
gte — >=
lt — <
lte — <=


Right value — right


Second input to compare or calculate. Keep its type compatible with the first input.

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).