Control                 package:base                 R Documentation

_C_o_n_t_r_o_l _F_l_o_w

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     if(cond) expr
     if(cond) cons.expr  else  alt.expr
     for(var in seq) expr
     while(cond) expr
     repeat expr
     break
     next

_S_e_e _A_l_s_o:

     `ifelse', `switch'.

_E_x_a_m_p_l_e_s:

     for(i in 1:5) print(1:i)

