Thanks David,
That helped, this is what seems to work for me:
PUSH-OMIT-CONTEXT
OMIT 2012-10-06 # Thanksgiving Weekend
OMIT 2013-03-16 # March Break
OMIT 2013-03-30 # Easter Weekend
IF today() >= '2012-09-12' && today() <= '2012-12-19'
SET LessonNum
nonomitted('2012-09-12',today(),"Sun","Mon","Tue","Wed","Thu","Fri")
REM Sat FROM 2012-09-12 UNTIL 2012-12-19 AT 10:45 DURATION 0:45
SKIP MSG Skating Lesson [LessonNum + 1] %"%"(%3 %c [CountDown()])
ENDIF
IF today() >= '2013-01-12' && today() <= '2013-04-15'
SET LessonNum
nonomitted('2013-01-12',today(),"Sun","Mon","Tue","Wed","Thu","Fri")
REM Sat FROM 2013-01-11 UNTIL 2013-04-15 AT 10:45 DURATION 0:45
SKIP MSG Skating Lesson [LessonNum + 1] %"%"(%3 %c [CountDown()])
ENDIF
POP-OMIT-CONTEXT
On 12-12-09 12:00 PM, [email protected] wrote:
Send Remind-fans mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/remind-fans
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Remind-fans digest..."
Today's Topics:
1. Increment Counter Variable (Roger)
2. Re: Increment Counter Variable (David F. Skoll)
----------------------------------------------------------------------
Message: 1
Date: Sun, 09 Dec 2012 06:09:55 -0500
From: Roger <[email protected]>
To: [email protected]
Subject: [Remind-Fans] Increment Counter Variable
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed
I would like to have a counter that increments for each event. Say, I
have 10 skating lessons over a period of time with OMITs for each
triggered event I would like to display the following messages:
Skating Lesson 1
Skating Lesson 2
.
.
.
Skating Lesson 10
but I haven't been able to increment the variablefrom one event to the
next. I have looked at man remindwith respect fset and expr but I
couldn't make anything that works.
If this is possible how should I do it?
------------------------------
Message: 2
Date: Sun, 9 Dec 2012 10:41:33 -0500
From: "David F. Skoll" <[email protected]>
To: [email protected]
Subject: Re: [Remind-Fans] Increment Counter Variable
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII
On Sun, 09 Dec 2012 06:09:55 -0500
Roger <[email protected]> wrote:
I would like to have a counter that increments for each event. Say,
I have 10 skating lessons over a period of time with OMITs for each
triggered event I would like to display the following messages:
Skating Lesson 1
Skating Lesson 2
.
.
.
Skating Lesson 10
I can't think of an easy way to do this, sorry. You might be able
to hack something with nonomitted() and some arithmetic, but Remind does not
have a way to keep that sort of state across different trigger dates.
Regards,
David.
------------------------------
_______________________________________________
Remind-fans mailing list
[email protected]
http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/remind-fans
Remind is at http://www.roaringpenguin.com/products/remind
End of Remind-fans Digest, Vol 105, Issue 4
*******************************************
_______________________________________________
Remind-fans mailing list
[email protected]
http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/remind-fans
Remind is at http://www.roaringpenguin.com/products/remind