Powered by CoCalc
%latex

$$\text{if $x>0$}$$
%latex

Other variations, such as $\text{if $x>0$}$ or \begin{equation*}\text{if $x>0$}\end{equation*} work fine.

4541fad3-0161-4f13-a46d-35b7b7bd481c
%md

$$\text{if $x>0$}$$