I use the following packages:
\usepackage{algorithm}
\usepackage{algpseudocode}
to display pseudocode of some algorithms in my latex document. For conditionals I use the follow
\If{success = 0}
\State \Return{$\emptyset$}
\EndIf
Now, this renders the if
and endif
keywords in bold using the same typeface as the one used for all the other control structures. My question is the following: How can I render if not
instead of if
? So my code would read something like:
\IfNot{success}
\State \Return{$\emptyset$}
\EndIf