0

When typesetting an algorithm, is there an elegant way to break/continue out of a nested loop. Something like how it is done in Rust. Any recommendations?

\begin{algorithm}
 \texttt{'J:} \For{i = 1,...,n}{
   \For{j = 1,...,m}{
     \If{Something}{
       \KwSty{break} \texttt{'J}
     }
   }
 }
\end{algorithm}
HiDefender
  • 101
  • 2

0 Answers0