Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Kevin,
Thanks for the reply but wouldn't that be the same result as:
if ($close_month eq $last4months[0])
Meaning that if there was NO transition in months (ie: Feb, Mar, Apr, May) I would still get the tickets for May 04 AND May 05?
Nick
my @last4months=($months[$curr-4],$months[$curr-3],$months[$curr-2],$months[$curr-1]);
[COLOR=red]if ($last4months[1] >= 10) {# if the first of the last 4 mths is greater than october
# we have a case for transition[/color]
$ly = 0; #init var
foreach (@last4months) { # iterate over last 4 months
if ($_ >= 10) { # if its greater than oct, it was last year
$last4years[$ly]=$year-1;
} else { # else its this year
$last4years[$ly]=$year;
}
$ly++; #increase counter
}
} [COLOR=red] else {
@last4years=($year, $year, $year, $year);
} [/color]
01,02,03,04
02,03,04,05,
03,04,05,06
04,05,06,07
05,06,07,08
06,07,08,09
09,10,11,12
[COLOR=red]10,11,12,01
11,12,01,02
12,01,02,03[/color]