> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Compare

Create a field that compares the values of one field to another. If the first field value is lower, -1 will be returned. If the two field values are equal, 0 will be returned. If the first field value is higher, 1 will be returned.

### Inputs

| Name      | Type                                                               | Description     |
| --------- | ------------------------------------------------------------------ | --------------- |
| Operand a | [Scalar Field](../../../../block-documentation/types/scalar-field) | First operand.  |
| Operand b | [Scalar Field](../../../../block-documentation/types/scalar-field) | Second operand. |

### Outputs

| Type                                                               |
| ------------------------------------------------------------------ |
| [Scalar Field](../../../../block-documentation/types/scalar-field) |
