Hello again all,
I have this code snippet that does not work:
what I am trying to do is if $open_month equals $rpt_month, increment a counter and continue on with the foreach loop, if not (else) skip the record and start the foreach loop again (I hope I explained that right).
Any help is appriciated,
Nick
I have this code snippet that does not work:
Code:
foreach $rpt_month (@month) {
if ($close_month == $rpt_month) {
$close_cnt++;
continue;
}else{
next;
}
if ($open_month == $rpt_month) {
$open_cnt++;
continue;
}else{
next;
}
what I am trying to do is if $open_month equals $rpt_month, increment a counter and continue on with the foreach loop, if not (else) skip the record and start the foreach loop again (I hope I explained that right).
Any help is appriciated,
Nick