I would like to add two customizations to the algorithmic package: introduce a new break command and have the possibility to provide labels to the LOOP so that break {label} is clear to which loop is referring to. I tried to introduce the break command like this:
\newcommand{\algorithmicbreak}{\textbf{break}}
but this won't work, I get the unknown command error when I type \BREAK
However, with this hack I can make it work but it is very unnice:
\renewcommand{\algorithmicprint}{\textbf{break}}
% then use it as
\PRINT
The LOOP labels I have no idea how to introduce.
UPDATE: my full example
\begin{algorithm}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\renewcommand{\algorithmicprint}{\textbf{break}}
\caption{\text{My-Algorithm}}
\label{algo:blah}
\begin{algorithmic}[1]
\REQUIRE X
\ENSURE Y
% STEP 1
\STATE \COMMENT{{\bf Step 1}} some something
\LOOP % can't annotate the loop :(((
% STEP 2
\STATE \COMMENT{{\bf Step 2}} do something more
\IF {$a = b$}
\RETURN $c$
\ELSE
\LOOP % can't annotate the loop :(((
% STEP 3
\STATE \COMMENT{{\bf Step 3}} do some more
\IF {$b = c$}
\STATE $y = x$
\PRINT % intending to break
\ELSE
% STEP 4
\STATE \COMMENT{{\bf Step 4}} and yet some more
\ENDIF
\ENDLOOP
\ENDIF
\ENDLOOP
\end{algorithmic}
\end{algorithm}

algorithmicpackage, tag with "algorithmicx", and it's not clear to what "LOOP" you are referring to). – Gonzalo Medina Aug 20 '12 at 14:39