Try the Mod() function.  It returns the remainder of a division.  Any even
number divided by 2 is 0 sooooo

<cfif LoopNumber mod 2 is 0>
LoopNumber is even
<cfelse>
LoopNumber is not even (odd)
</cfif>
======================
> I have a cfloop that loops 6 times, I want to be able to be able to output
> what loop number the current loop is on, and tell if the number is even or
> odd.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to