I have this simple and little formula that counts the days for each year.
Code: Select all
variables:
stYear (false),
count (0);
if Year(date) <> Year(date)[1] then begin
stYear = true;
count = 0;
end;
if stYear then
count = count + 1;
plot1(count);
If I request to print the count variable, all days within the year will be printed, but what I want is to print only the last count for the last day of each year.
Thank you.
Fernando