# Change while to repeat ... until

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

• Welcome to TeX.SE. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. Apr 1, 2017 at 0:11

• It's giving me an error telling ! Undefined control sequence. at \repeat. Jan 3, 2019 at 4:39