I don't think you need to loop at all. Your ranges are 10 numbers apiece, right?
<cfset currentValue=72> <cfset rangeSize=10> <!--- Use integer division ---> <cfset startValue=currentValue \ rangeSize * rangeSize + 1> <cfset endValue=startValue + rangeSize - 1> "\" is the operator for integer division. 72 \ 10 = 7 * 10 = 70 + 1 = 71 71 + 10 = 81 - 1 = 80 -----Original Message----- From: [EMAIL PROTECTED] Sent: Friday, August 25, 2006 3:07 AM To: CF-Talk Subject: cfloop conditional help I want to loop over a URL.VIDEO_ID value and find the numeric range it falls in. The value range needs to be between 1-10 or 11-21 etc. until the condition is met. EXAMPLE: if the URL.VIDEO_ID value is 72 I would want to cfloop until I found the range that this 72 value fit and then set variables like ... <CFSET start = 71> and <CFSET end = 80> I have ... <CFSET START = 1> <CFSET END = 10> THIS IS WHERE I NEED HELP <CFLOOP condition="URL.VIDEO_ID GREATER THAN OR EQUAL TO START OR URL.VIDEO_ID LESS THAN OR EQUAL TO END" step="10"> ???? </CFLOOP> D- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251018 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

