---
url: /dyad/stable/stdlib/BlockComponents/types/Interfaces.PartialBooleanComparison.md
description: >-
  Dyad Interfaces.PartialBooleanComparison docs.  Partial block with 2 Real
  input and 1 Boolean output signal.
---

# `Interfaces.PartialBooleanComparison` {#Interfaces.PartialBooleanComparison}

Partial block with 2 Real input and 1 Boolean output signal.

The result of a comparison of the two Real inputs is provided as Boolean output. Block has a 3D icon (e.g., used in Blocks.Logical library).

## Usage {#Usage}

`BlockComponents.Interfaces.PartialBooleanComparison()`

## Connectors {#Connectors}

* `u1` - This connector represents a real signal as an input to a component ([`RealInput`](/stdlib/Dyad/connectors/RealInput#RealInput))

* `u2` - This connector represents a real signal as an input to a component ([`RealInput`](/stdlib/Dyad/connectors/RealInput#RealInput))

* `y` - This connector represents a boolean signal as an output from a component ([`BooleanOutput`](/stdlib/Dyad/connectors/BooleanOutput#BooleanOutput))

## Source {#Source}

```dyad
"""
Partial block with 2 Real input and 1 Boolean output signal.

The result of a comparison of the two Real inputs is provided as Boolean output.
Block has a 3D icon (e.g., used in Blocks.Logical library).
"""
partial component PartialBooleanComparison
  "Connector of first Real input signal"
  u1 = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 140, "x2": 0, "y2": 240, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of second Real input signal"
  u2 = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 700, "x2": 0, "y2": 800, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of Boolean output signal"
  y = BooleanOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
relations
metadata {"Dyad": {"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}]}}
end
```

```dyad
"""
Partial block with 2 Real input and 1 Boolean output signal.

The result of a comparison of the two Real inputs is provided as Boolean output.
Block has a 3D icon (e.g., used in Blocks.Logical library).
"""
partial component PartialBooleanComparison
  "Connector of first Real input signal"
  u1 = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 140, "x2": 0, "y2": 240, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of second Real input signal"
  u2 = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 700, "x2": 0, "y2": 800, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of Boolean output signal"
  y = BooleanOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
relations
metadata {"Dyad": {"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}]}}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
