Not sure why you're checking for even or odd numbers (the x MOD 2), but this
will work for ya:
<cfloop index="count" from="0" to="48">
<cfset sTime = TimeFormat(DateAdd("n", count*30, "7:00 am"), "hh:mm
tt")>
<cfoutput><option value="#sTime#">#sTime#</option></cfoutput>
</cfloop>
-----Original Message-----
From: Won Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 11, 2000 1:27 PM
To: cf-talk (E-mail)
Subject: funky select box
i wish to make a select box of a time when people can schedule an
apppointment in 30 minute increments
so far i have this
<select name="service_time" size="1">
<option value="">Select time</option>
<!--- start time is 7 am. end time is 6. converted into minutes
--->
<cfloop index="count" from="420" to="1080" step="30">
<cfif count / 60 MOD 2>
<cfset variables.display_time = "blah">
<cfelse>
<cfset variables.display_time = count / 60>
</cfif>
<cfoutput><option
value="#count#">#variables.display_time#</cfoutput>
</cfloop>
</select>
any help?
Won Lee
Systems Consultant
New Channel Technologies
(330) 220-1558
[EMAIL PROTECTED]
"Turning ideas into e-Business"
<allaire> Premier Partner
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.