Loops/Continue: Difference between revisions
Content added Content deleted
(+Stata) |
|||
Line 1,674: | Line 1,674: | ||
</pre> |
</pre> |
||
=={{header|Stata}}== |
|||
See '[https://www.stata.com/help.cgi?continue continue]''' in Stata help. Notice that the _continue option of '''[https://www.stata.com/help.cgi?display display]''' has another purpose: it suppresses the automatic newline at the end of the display command. |
|||
<lang stata>forvalues n=1/10 { |
|||
display `n' _continue |
|||
if mod(`n',5)==0 { |
|||
display |
|||
continue |
|||
} |
|||
display ", " _continue |
|||
}</lang> |
|||
=={{header|Suneido}}== |
=={{header|Suneido}}== |