| Author |
Comment/Response |
jf
|
12/16/12 7:02pm
Break and Continue are better documented.
The examples in the reference page for CompoundExpression all show the inputs on one line. There has always been a difference between inputs on the same line and when separated by new-line characters.
Putting your input all on one line gives you want you want, an infinite loop:
Label[zu]; Print["zuzu"]; For[i = 1, i < 10, i++,
If[i == 5, Goto[zu], If[i == 7, Goto[bu]]]]; Label[bu];
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
zuzu
...
URL: , |
|