Menu

#23 cfscript continue does not work

open
nobody
None
5
2008-04-27
2008-04-27
Anonymous
No

Contact info
Andrew Penhorwood
apenhorwood@kaleo.biz

I have some code that uses the cfscript command continue. When this code runs on smith the process start to just spin. (using alots of CPU but not doing anything).

I have a reproducible test case here

<cfscript>
cnt = 0;

for(x=0;x LT 10;x=x+1)
{
if((x EQ 3) or (x EQ 5) or (x EQ 7)) { continue; } // skip counter
cnt = cnt + 1;
}
</cfscript>

<cfoutput>
Counter: #cnt#
</cfoutput>

Smith should either include continue as a command or throw an error.

Discussion


Log in to post a comment.