Compare Values

logic · C094 · starter-package 7.0.1

Returns -1, 0, or 1 to describe the ordering of two comparable values.

Use it when

Produce a reusable ordering result for sorting or multi-branch decisions.

Inputs and output

  • Left and Right must be the same supported comparable kind.
  • Result is -1 when Left is smaller, 0 when equal, and 1 when greater.

Rules

Supported kinds are finite numbers, text, valid datetimes, and valid durations. No type coercion or locale-dependent collation is used.

Example

Left "b" and Right "a" produce 1.

Invalid inputs stop the workflow on this object and show a specific message describing what to change.

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputleft — Leftanyyes
Inputright — Rightanyyes
Outputresult — Resultnumberon success