I am trying to add else if
instead of else
in the algorithm, but it is not working.
I am using this package:
\usepackage[ruled]{algorithm2e}
Latex code:
\begin{algorithm}[H]
\While{true:}{
\eIf{response}{
instructions1\;
instructions2\;
}{
instructions3\;
}
}
\caption{Scaling}
\end{algorithm}
not working
is not really helpful. What is not working? Andbiblatex
andifthenelse
are completely irrelevant tags here – user31729 May 6 '16 at 17:16\ElseIf{response}{
(instead ofeIf
) outputs else if. But I agree with @egreg, in terms of (pseudo)code this seems to be incorrect. – Marijn May 6 '16 at 17:29