[Remind-Fans] Can't compute trigdate for bridging days

Jens Mueller jens.k.mueller at gmx.de
Sat Sep 26 15:59:36 EDT 2020


Dianne Skoll via Remind-fans wrote:
> On 2020-09-25 19:53, Jens Mueller wrote:
>
> > rem mon SKIP SATISFY [isomitted(trigdate()+1)] msg Bridging day
> > rem fri SKIP SATISFY [isomitted(trigdate()-1)] msg Bridging day
>
> That won't work.
>
> One reason it can fail is if there are no omitted days around today
> or at any point in the future.  Try this:
>
> echo 'mon SKIP SATISFY [isomitted(trigdate()+1)] MSG Bridging' | remind -dtx -
>
> WARNING: It will produce a lot of output.
>
> The SATISFY clause will search fruitlessly for an omitted Tuesday and will
> give up after the SATISFY iteration limit.
>
> You'll have to rewrite the logic as follows:
>
> IFTRIG Mon SKIP
>    IF isomitted(trigdate()+1)
>        REM [trigdate()] MSG Bridging Day
>    ENDIF
> ENDIF
>
> IFTRIG Fri SKIP
>    IF isomitted(trigdate()-1)
>        REM [trigdate()] MSG Bridging Day
>    ENDIF
> ENDIF

Thank you. I adapted the code for now.

Jens



More information about the Remind-fans mailing list