I ran across this bit of CF code in a project that I'm working on upgrading, and I was so completely confused by the it that I thought I might throw it up here to see what people think of it.
<cfset additionalNumber = additionalNumber />
<cfloop from="#startDate#" to="#endDate#" index="i">
<cfset temp_list="hours_#projectCode#_#taskCode#_#positionCode#_#i#" />
<cfset temp_projectCode = ListGetAt(temp_list,2,"_") />
<cfset temp_taskCode = ListGetAt(temp_list,3,"_") />
<cfset temp_positionCode = ListGetAt(temp_list,4,"_") />
<cfset temp_WorkDate = ListGetAt(temp_list,5,"_") />
<cfif temp_WorkDate eq i>
<cfif temp_projectCode eq projectCode>
<cfif temp_taskCode eq taskCode>
<cfif temp_positionCode eq positionCode>
<!--- Do stuff with the data --->
I personally cannot think of anything that the code inside the <cfloop> actually accomplishes. Am I missing something?