Why do you need to skip an iteration? Just put an "if" inside the loop as to whether to display the ------.
Psuedo: <loop> <if myCondition = true> <option value="">-------</option> <set myCondition = false /> </if> <option value="#queryLoopData#">#queryLoopData#</option> </loop> On Fri, Nov 26, 2010 at 11:05 AM, Richard Steele <[email protected]> wrote: > > I'd like to put a separation divider (eg. '--------') in a dropdown box > list whose values are populated using a cfloop. > > Once the divider is shown, I set a variable to not show that divider again. > However I need to backup one record in order to show the actual record's > value that was replaced in the loop with my divider. > > I could probably insert the divider into database query but I'm wondering > if it is possible to skip -1 record within a cfloop. > > Hope this makes sense. > > Thanks in advance. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339542 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

