Help with formula: day counter and PRINT
Posted: 10 Oct 2009
Hi.
I have this simple and little formula that counts the days for each year.
What I'd like to know is how can I print the last value of each yearly 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
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