---
url: /dyad/dev/stdlib/BlockComponents/components/Logical.Not.md
description: 'Dyad Logical.Not docs.  Logical ''not'': y = not u.'
---

# `Logical.Not` {#Logical.Not}

Logical 'not': y = not u.

The output is **true** if the input is **false**, otherwise the output is **false**.

This component extends from [`BlockComponents.Interfaces.PartialBooleanSISO`](../types/Interfaces.PartialBooleanSISO.md)

## Usage {#Usage}

`BlockComponents.Logical.Not()`

## Connectors {#Connectors}

* `u` - This connector represents a boolean signal as an input to a component ([`BooleanInput`](/stdlib/Dyad/connectors/BooleanInput#BooleanInput))

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

## Behavior {#Behavior}

$$ \begin{align}
y\left( t \right) &= \neg u\left( t \right)
\end{align}
$$

## Source {#Source}

```dyad
"""
Logical 'not': y = not u.

The output is **true** if the input is **false**, otherwise the output is **false**.
"""
component Not
  extends BlockComponents.Interfaces.PartialBooleanSISO
relations
  y = !u
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Not.svg"}
  }
}
end
```

```dyad
"""
Logical 'not': y = not u.

The output is **true** if the input is **false**, otherwise the output is **false**.
"""
component Not
  "Connector of Boolean input signal"
  u = BooleanInput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "input", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0},
        "diagram": {"iconName": "input", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
      }
    }
  }
  "Connector of Boolean output signal"
  y = BooleanOutput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "output", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0},
        "diagram": {"iconName": "output", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      }
    }
  }
relations
  y = !u
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Not.svg"}
  }
}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`Logical`](Logical.Not.md)

  * [`LogicalValidation`](Logical.Not.md)
