# ne relational operator

The ne relational operator represents
a not equal to condition within relational expressions.

**Synonyms:** #, ><, <>

## Syntax

```
exp ne exp
```

## Example(s)

```
if ans ne "y" then print "Not equal to Yes" else print "Yes"
```

## See also

- [# relational operator](https://d3codex.com/pickbasic-flashbasic/pound-relational-pperator/)
- [<> relational operator](https://d3codex.com/pickbasic-flashbasic/less-than-greater-than-relational-operator/)
- [>< relational operator](https://d3codex.com/pickbasic-flashbasic/greater-than-les-than-relational-operator/)
- [not() function](https://d3codex.com/pickbasic-flashbasic/not-function/)
- [Relational operators](https://d3codex.com/pickbasic-flashbasic/relational-operators/)

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