<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fbreak</id>
		<title>IB Statements/break - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fbreak"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/break&amp;action=history"/>
		<updated>2026-05-03T20:44:41Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/break&amp;diff=366&amp;oldid=prev</id>
		<title>Badge: New page: '''BREAK statement'''   '''Syntax:'''  BREAK    '''Discussion:'''  The BREAK statement stops execution of the conditional statement block within a FOR/NEXT structure, a DO/LOOP structure, ...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/break&amp;diff=366&amp;oldid=prev"/>
				<updated>2009-05-20T11:39:12Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;BREAK statement&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  BREAK    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The BREAK statement stops execution of the conditional statement block within a FOR/NEXT structure, a DO/LOOP structure, ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''BREAK statement''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  BREAK  &lt;br /&gt;
&lt;br /&gt;
'''Discussion:'''  The BREAK statement stops execution of the conditional statement block within a FOR/NEXT structure, a DO/LOOP structure, or a SELECT/CASE structure. The BREAK statement passes control to the statement following the final statement in the structure (the NEXT statement, LOOP statement, or ENDSELECT statement, respectively). &lt;br /&gt;
&lt;br /&gt;
The BREAK statement must occur between a FOR and NEXT statement, between a DO and LOOP statement, or within a CASE block. &lt;br /&gt;
&lt;br /&gt;
If a BREAK statement occurs within an IF/THEN or IF/THEN/ELSE structure, the IF structure must itself be within a FOR/NEXT loop, DO/LOOP structure, or CASE block, and the BREAK statement refers to the FOR, DO, or CASE structure, accordingly. &lt;br /&gt;
&lt;br /&gt;
There can be multiple BREAK statements within a given FOR/NEXT or DO/LOOP structure. &lt;br /&gt;
 &lt;br /&gt;
Example 1:&lt;br /&gt;
&lt;br /&gt;
  FOR I=1 TO 10        ! Start the loop&lt;br /&gt;
  .&lt;br /&gt;
  IF A=I THEN BREAK    ! If A=I jump to end of loop &lt;br /&gt;
  . &lt;br /&gt;
  NEXT I               ! Increment I and loop back&lt;br /&gt;
 !&lt;br /&gt;
  HERE:                ! The BREAK statement jumps to this label&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Example 2:  &lt;br /&gt;
  DO WHILE I LE 10     ! Start the loop&lt;br /&gt;
 .&lt;br /&gt;
  IF A=I [THEN] BREAK  ! If A=I jump to end of loop&lt;br /&gt;
  .&lt;br /&gt;
 LOOP                 ! Loop back&lt;br /&gt;
  !&lt;br /&gt;
  HERE:                ! The BREAK statement jumps to this label&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>