I am attempting to edit an if statement that I was using in an environment I created. Previously, the code was
\if #1\empty
\else
\textbf{#1.}\hspace{0.5em}%
\fi
I want to change it to something like
\if #1\empty \textbf{}\hspace{0.5em}
\else
\textbf{#1.}\hspace{0.5em}%
\fi
where I could put what I want in the \textbf{}. But whatever I put in there, I get \Omega printed in front of it. When left empty like above, it simply prints \Omega. If #1 is not empty, there is no \Omega.
My code
\documentclass[12pt,letterpaper]{article}
\newenvironment{question}[3][]{
\noindent\ignorespaces
\if #1\empty \textbf{}\hspace{0.5em}
\else
\textbf{#1.}\hspace{0.5em}%
\fi
}{}
\begin{document}
\begin{question}{0}{8}\end{question}
\begin{question}[1]{0}{8}\end{question}
\end{document}
Any advice on getting rid of this capital omega is very welcome.