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/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
- RE: Query Error Duane Boudreau
- Query Error David Clay
- Finding an Odd Number Jason Larson
- Re: Finding an Odd Number Howie Hamlin
- RE: Finding an Odd Number Evan Lavidor
- RE: Finding an Odd Number JustinMacCarthy
- CF 4.5.1 SP1 ramping up eisensmi
- Re: Finding an Odd Number Brian bouldernet
- Re: Finding an Odd Number Peter Theobald
- Re: Finding an Odd Number Dean Alexandrou
- RE: Finding an Odd Number Joseph Thompson
- RE: Finding an Odd Number Paul Mone
- Re: Finding an Odd Number James Brown
- RE: Finding an Odd Number [BitAnd(... Paul Mone
- RE: Finding an Odd Number lsellers
- RE: query error Jason Lees (National Express)
- RE: query error Will Swain
- RE: query error DeVoil, Nick

