I've got an example like that:
\documentclass{article}
\usepackage{etoolbox}
\newcommand{\ab}{a}
\newcommand{\aORb}[1]{%
\ifstrequal{#1}{a}{"a" was given}{not a}, %
\ifstrequal{#1}{b}{"b" was given}{not b}%
}
\begin{document}
begin
\aORb{\ab{}}
end
\end{document}
And the output of that code is:
begin
not a, not b
end
However, if I put simply "a" or "b" as an argument to \aORb
instead of \ab{}
then it works fine.
Is there another command in etoolbox
package that will allow me to do such a comparison correctly?