> For the complete documentation index, see [llms.txt](https://max-daunarovich.gitbook.io/flow-network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://max-daunarovich.gitbook.io/flow-network/introduction/operators/negation.md).

# Negation

The `-` unary operator negates an integer:

```
let a = 1
-a  // is `-1`
```

The `!` unary operator logically negates a boolean:

```
let a = true
!a  // is `false`
```
