Vertical bar symbol as a relational operator in Latex

Vertical bar symbol as a relational operator in Latex

$$\mid$$
\mid
Vertical bar symbol as a relational operator in Latex \mid