I posted a message and asked for help on creating a code to calculate up to 30 days and then send an alert saying " 30 days is calculated". After no one here was able to help me I managed to solve the problem my self. The code is below:
staticint counter=0;
int newday=Day();
int oldday=newday-1;
if (oldday<=newday)
{
counter=counter+1;
Alert("Day=",counter);
}
if(counter>=31)
{
Alert("30 days is calculated");
return(false);
I posted a message and asked for help on creating a code to calculate up to 30 days and then send an alert saying " 30 days is calculated". After no one here was able to help me I managed to solve the problem my self. The code is below: