[Remind-Fans] A-Day / B-Day

hymie! hymie at nasalinux.net
Tue Aug 27 09:45:23 EDT 2024


On Tue, Aug 27, 2024 at 09:26:50AM -0400, Dianne Skoll via Remind-fans wrote:
> On Tue, 27 Aug 2024 09:02:41 -0400
> Hymie! via Remind-fans <remind-fans at lists.skoll.ca> wrote:
> 
> > msg [a_day]
> 
> This will trigger every single day.  There's no trigger speficiation,

Sorry, I wasn't clear...  What I meant was that I expected the variable
to be 0 half of the time.

That is ...

set a_day 0
rem 2024-08-27 *2 SKIP SATISFY 1
if (trigvalid())
  set a_day 1
endif
msg [a_day]

I expected this to say

2024/08/25 * * * * 0
2024/08/26 * * * * 0
2024/08/27 * * * * 1
2024/08/28 * * * * 0
2024/08/29 * * * * 1
2024/08/30 * * * * 0
2024/08/31 * * * * 1
2024/09/01 * * * * 0
2024/09/02 * * * * 1
2024/09/03 * * * * 0

instead of

2024/08/25 * * * * 1
2024/08/26 * * * * 1
2024/08/27 * * * * 1
2024/08/28 * * * * 1
2024/08/29 * * * * 1
2024/08/30 * * * * 1
2024/08/31 * * * * 1
2024/09/01 * * * * 1
2024/09/02 * * * * 1
2024/09/03 * * * * 1

I really want the variable set correctly, so that I can use it for
the different schedules

if (a_day == 1)
  stuff
  stuff
  stuff
else
  otherstuff
  otherstuff
  otherstuff
endif

But that's OK, because you fixed both problems at once...

> #======================================================================
> FSET abday(x) iif(nonomitted('2024-08-27', x) % 2, "B Day", "A Day")
> 
> OMIT SAT
> OMIT SUN
> OMIT 2024-09-02
> 
> REM FROM 2024-08-27 SKIP MSG [abday($T)]
> #======================================================================

That's exactly what I want.  Thanks!

--hymie!


More information about the Remind-fans mailing list