ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahz_5.4.0.1/break.htm

52 lines
1.2 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8">
<title>break - Exit from for, while, or until loop</title>
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</HEAD>
<body bgcolor="#FFFFFF">
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h2>break - Exit from for, while, or until loop</h2>
<strong>Synopsis</strong>
<p><strong>break</strong>[ <em>n</em> ]</p>
<p><strong>Description</strong></p>
<p>You can use <strong>break</strong> to exit from the smallest
enclosing <strong>for, while,</strong> or <strong>until</strong>
loop or from the <em>n</em>th enclosing loop. Processing resumes
with the command immediately following the loop.</p>
<p><strong>Options</strong></p>
<p>None.</p>
<p><strong>Operands</strong></p>
<p>The value of <em>n</em> must be greater than or equal to 1.</p>
<p><strong>Exit Status</strong></p>
<ul>
<li>0 when successful.</li>
</ul>
<p><strong>Related information</strong></p>
<ul>
<li><a href="continue.htm">continue - Continue for, while, or until
loop</a></li>
</ul>
</body>
</html>