# ! logical operator

The ! logical operator indicates an
or operation in a logical expression.

**Synonyms:** or

## Syntax

```
logical.exp ! logical.exp
```

## Example(s)

This illustrates the ! as an or operator.

```
if x < 0 ! x > 10 then...
```

## See also

- [* arithmetic operator](https://d3codex.com/pickbasic-flashbasic/asterisk-arithmetic-operator/)
- [if statement](https://d3codex.com/pickbasic-flashbasic/if-statement/)
- [ifr statement](https://d3codex.com/pickbasic-flashbasic/ifr-statement/)
- [Logical expressions](https://d3codex.com/pickbasic-flashbasic/logical-expressions/)
- [or logical operator](https://d3codex.com/pickbasic-flashbasic/or-logical-operator/)
- [Relational operators](https://d3codex.com/pickbasic-flashbasic/relational-operators/)
- [rem statement](https://d3codex.com/pickbasic-flashbasic/rem-statement/)
- [[] reserved characters](https://d3codex.com/pickbasic-flashbasic/brackets-reserved-characters/)

---
Source: https://d3codex.com/pickbasic-flashbasic/exclamation-logical-operator/ - part of the D3Codex reference.
