J
J. Muenchbourg
I'm working on displaying the matchups of NFL teams for a given week,
and I need to display weekday abbreviations alongside of the visiting
teams' names . If a game is on Thursday, then Th gets displayed aside
the team's name. But I only want to display the Sunday "su" abbreviation
by just the first team whose game appears on sunday. I declare su1,
initialize it with a 0, but even tho i increment the value when it
occurs once, and then compare it to the value of 1 next time thru the
loop, i still gets the "Su" s displayed by each and every game for that
sunday, what is what I don't want:
<%dim su1
su1 = 0
if myweekday = 2 then
response.write "Mo"
elseif myweekday = 5 then
response.write "Th"
elseif myweekday = 7 then
response.write "Sa"
elseif myweekday = 1 and su1 = 0 then
su1 = su1 + 1
response.write "Su"
end if%>
???
Muench, thanks
and I need to display weekday abbreviations alongside of the visiting
teams' names . If a game is on Thursday, then Th gets displayed aside
the team's name. But I only want to display the Sunday "su" abbreviation
by just the first team whose game appears on sunday. I declare su1,
initialize it with a 0, but even tho i increment the value when it
occurs once, and then compare it to the value of 1 next time thru the
loop, i still gets the "Su" s displayed by each and every game for that
sunday, what is what I don't want:
<%dim su1
su1 = 0
if myweekday = 2 then
response.write "Mo"
elseif myweekday = 5 then
response.write "Th"
elseif myweekday = 7 then
response.write "Sa"
elseif myweekday = 1 and su1 = 0 then
su1 = su1 + 1
response.write "Su"
end if%>
???
Muench, thanks