tracker issue : CF-4205207

select a category, or use search below
(searches all categories and all time range)

continue in cfscript behaves differently from cfcontinue when cfloop through a file

| View in Tracker

Status/Resolution/Reason: To Test//NeedMoreInfo

Reporter/Name(from Bugbase): Rong-chii D. / ()

Created: 09/12/2019

Components: Tags, General

Versions: 2016

Failure Type:

Found In Build/Fixed In Build: 2016.0.07.311392 /

Priority/Frequency: Normal /

Locale/System: / Windows 10 64 bit

Vote Count: 0

Problem Description:
Different results from CFTAG and cfscript when loop through a file with cfcontinue/continue in the flow.

Steps to Reproduce:
<cfset my_file = "fullpath_to_the_file">
	line_no = 0;
	cfloop (index="line", file=my_file) {
		line_no = line_no + 1;
		if (line_no % 2 == 1) 
			writeoutput("[#line_no#] #line#<br>");
<h3>By CFTAG:</h3>
<cfset line_no = 0>
<cfloop index="line" file="#my_file#">
	<cfset line_no = line_no + 1>
	<cfif (line_no % 2) is 1>
		<cfoutput>[#line_no#] #line#<br></cfoutput>
Actual Result:
The cfscript part only outputs the first line which the CFTAG parts output all odd lines.

Expected Result:
Both CFTAG and cfscript style should output the same with CFCONTINUE or continue in the flow.

Any Workarounds: