Skip to content

Miscellaneous

resetCycle()

resetCycle() — returns any

Resets a cycle so that it starts from the first list value the next time it is called.

NameTypeRequiredDefaultDescription
namestringyesdefaultThe name of the cycle to reset.
<!--- alternating row colors and shrinking emphasis --->
<cfoutput query="employees" group="departmentId">
	<div class="#cycle(values="even,odd", name="row")#">
		<ul>
			<cfoutput>
				<cfset rank = cycle(values="president,vice-president,director,manager,specialist,intern", name="position")>
				<li class="#rank#">#categories.categoryName#</li>
				<cfset resetCycle("emphasis")>
			</cfoutput>
		</ul>
	</div>
</cfoutput>