[Tex/LaTex] Change while to repeat … until

algorithm2ealgorithmicxalgorithmsloops

If I have this script:

\documentclass[conference]{IEEEtran}
\usepackage{algorithmicx}
\usepackage{algorithm}
\usepackage{algpseudocode}

\begin{algorithmic}
  \While{$x = y$}
    \State Something
  \EndWhile
\end{algorithmic}

I want to change while with repeat .. until. I tried \Repeat .. \Until but it doesn't work. How can I do that? Thank you

Best Answer

This is a snippet from the package documentation at http://tug.ctan.org/macros/latex/contrib/algorithmicx/algorithmicx.pdf (page 6).

enter image description here