<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-pa7.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-26T05:08:47</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#20795" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#20728" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#11539" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#8412" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#8221" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#20795">
		<title>coldfusion/6.1/htmldocs/tags-pa7.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#20795</link>
		<description>cfcontinue is enhancement request 52228.</description>
		<dc:creator>extdw_doc</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-09-01T10:23:47</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#20728">
		<title>coldfusion/6.1/htmldocs/tags-pa7.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#20728</link>
		<description>Why isn't there a 'cfcontinue' tag?</description>
		<dc:creator>Didgiman</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-08-31T06:35:11</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#11539">
		<title>coldfusion/6.1/htmldocs/tags-pa7.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#11539</link>
		<description>We are working to improve the examples in the ColdFusion reference pages. We propose to replace the current example on this page with the the following example. If you have any comments on this example, add them to this page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--- This shows the use of cfbreak to exit a loop when a condition is met ---&gt;&lt;br /&gt;&lt;!--- select courses; use cfloop to find a condition; then break the loop ---&gt;&lt;br /&gt;&lt;!--- check that number is numeric ---&gt;&lt;br /&gt;&lt;cfif IsDefined(&quot;form.number&quot;)&gt;&lt;br /&gt;   &lt;cfif Not IsNumeric(form.number)&gt;&lt;br /&gt;      &lt;cfabort&gt; &lt;br /&gt;      &lt;/cfif&gt; &lt;br /&gt;   &lt;/cfif&gt; &lt;br /&gt;&lt;cfquery name=&quot;GetCourses&quot; datasource=&quot;cfsnippets&quot;&gt;&lt;br /&gt;   SELECT * &lt;br /&gt;   FROM Courses &lt;br /&gt;   ORDER by Number &lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt; &lt;br /&gt;&lt;p&gt; This example uses CFLOOP to cycle through a query to find a value.&lt;br /&gt;(In our example, a list of values corresponding to courses in the Snippets&lt;br /&gt;datasource). When the conditions of the query are met, CFBREAK stops the loop.&lt;br /&gt;&lt;p&gt; Please enter a Course Number, and hit the &quot;submit&quot; button: &lt;br /&gt;&lt;form action=&quot;cfbreak.cfm&quot; method=&quot;POST&quot;&gt; &lt;br /&gt;      &lt;select name=&quot;courseNum&quot;&gt; &lt;br /&gt;   &lt;cfoutput query=&quot;GetCourses&quot;&gt; &lt;br /&gt;      &lt;option value=&quot;#Number#&quot;&gt;#Number# &lt;br /&gt;      &lt;/cfoutput&gt; &lt;br /&gt;      &lt;/select&gt; &lt;br /&gt;   &lt;input type=&quot;Submit&quot; name=&quot;&quot; value=&quot;Search on my Number&quot;&gt; &lt;br /&gt;&lt;/form&gt; &lt;br /&gt;&lt;!---- if the courseNum variable is not defined, don't loop through the query ---&gt;&lt;br /&gt;&lt;cfif IsDefined (&quot;form.courseNum&quot;) IS &quot;True&quot;&gt;&lt;br /&gt;   &lt;!--- loop through query until value found, then use CFBREAK to exit query---&gt;&lt;br /&gt;   &lt;cfloop query=&quot;GetCourses&quot;&gt; &lt;br /&gt;      &lt;cfif GetCourses.Number IS form.courseNum&gt; &lt;br /&gt;         &lt;cfoutput&gt; &lt;br /&gt;            &lt;h4&gt;Your Desired Course was found:&lt;/h4&gt; &lt;br /&gt;            &lt;pre&gt;#Number# #Descript#&lt;/pre&gt; &lt;br /&gt;         &lt;/cfoutput&gt; &lt;br /&gt;         &lt;cfbreak&gt; &lt;br /&gt;      &lt;cfelse&gt; &lt;br /&gt;            &lt;br&gt; Searching... &lt;br /&gt;      &lt;/cfif&gt; &lt;br /&gt;   &lt;/cfloop&gt; &lt;br /&gt;&lt;/cfif&gt;</description>
		<dc:creator>wlee</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-03-22T10:45:02</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#8412">
		<title>coldfusion/6.1/htmldocs/tags-pa7.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#8412</link>
		<description>This is a known issue in ColdFusion MX 6.1 (bug number 53339).</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-02-18T13:16:12</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#8221">
		<title>coldfusion/6.1/htmldocs/tags-pa7.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa7.htm#8221</link>
		<description>i just found out today that cfbreak *also* breaks out of a cfswitch statement which it didn't used to do. So if you have a cfswitch within a cfloop and call the cfbreak inside of one of the cfcases, it will keep on looping. &lt;br /&gt;&lt;br /&gt;Personally I think this was added to the language with false logic. In most other languages the break; statement is associated with cases. i.e. in c++ it's like this:&lt;br /&gt;&lt;br /&gt;switch (expr) {&lt;br /&gt;  case c1:&lt;br /&gt;        statements  // do these if expr == c1&lt;br /&gt;        break;&lt;br /&gt;  case c2:&lt;br /&gt;        statements  // do these if expr == c2&lt;br /&gt;        break;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Where the break; separates the various case statements. but in cfml, we already have a &lt;/cfcase&gt;&lt;br /&gt;&lt;cfswitch expression=&quot;#expr#&quot;&gt;&lt;br /&gt;  &lt;cfcase value=&quot;c1&quot;&gt;&lt;br /&gt;        statements  // do these if expr == c1&lt;br /&gt;  &lt;/cfcase&gt;&lt;br /&gt;  &lt;cfcase value=&quot;c2&quot;&gt;&lt;br /&gt;        statements  // do these if expr == c2&lt;br /&gt;  &lt;/cfcase&gt;&lt;br /&gt;&lt;/cfswitch&gt;&lt;br /&gt;&lt;br /&gt;Adding a &lt;cfbreak&gt; inside of the case, is the same thing as closing the cfcase. &lt;br /&gt;&lt;br /&gt;This makes CFMX not backwards compatible with CF5.</description>
		<dc:creator>Steve</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-02-17T08:14:31</dc:date>
	</item>
	</rdf:RDF>

