On 18-12-2012, at 11:51, Stefano Fachin wrote:
just thinking: it would be nice to have a "goto" control
inside loops. In Monte Carlo sometimes there is the need to discard one of the
replications, jumping to the next.
Merry Xmas and Happy New Year!
Stefano
No goto please.
Something like next (R, awk, Perl), continue (...) or cycle (Fortran) could possibly be
an option.
But as Allin has already said a simple if often will do just as well.
Berend