\Header{Control}{Control Flow}
\alias{break}{Control}
\alias{else}{Control}
\alias{for}{Control}
\alias{if}{Control}
\alias{next}{Control}
\alias{repeat}{Control}
\alias{while}{Control}
\keyword{programming}{Control}
\keyword{iteration}{Control}
\keyword{logic}{Control}
\begin{Description}\relax
These are the basic control-flow constructs of the \R{} language.
They function in much the same way as control statements
in any algol-like language.\end{Description}
\begin{Usage}
\begin{verbatim}
if(cond) expr
if(cond) cons.expr  else  alt.expr
for(var in seq) expr
while(cond) expr
repeat expr
break
next
\end{verbatim}
\end{Usage}
\begin{SeeAlso}\relax
\code{\Link{ifelse}},
\code{\Link{switch}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
for(i in 1:5) print(1:i)
\end{ExampleCode}
\end{Examples}

