[Remind-Fans] Ignore REM a posteriori (depending on further processing)

Dianne Skoll dianne at skoll.ca
Wed Jun 14 15:19:34 EDT 2023


On Wed, 14 Jun 2023 20:25:24 +0200 (CEST)
l0f4r0--- via Remind-fans <remind-fans at lists.skoll.ca> wrote:

> Is it possible to simply ignore a REM when certain conditions are met
> a posteriori?

Nope.  Not without SATISFY or putting it in an IF clause.

> For example something like the following:

> REM 10 October MSG [myfunc(2020)]
> FSET myfunc(myarg) iif(myarg==$Ty,"result1",myarg>$Ty,"result2",IGNORE_ASSOCIATED_REM)

In this case, Remind would have to be clairvoyant, because the function
is only defined after the REM statement. :P

For your specific case

    FSET myfunc(x) iif(x == $TY, "result1", "result2")
    REM 10 October UNTIL 2020-10-10 MSG [myfunc(2020)]

And yes, 2020 is duplicated, but c'est la vie.  Having something that
can "cancel" a REM statement would make reminder files extremely
difficult to debug, IMO.

You can get away without passing 2020 into myfunc, and instead have
it look at year(triguntil()) but that would mean the function would
only work if there is an UNTIL clause.

Regards,

Dianne.


More information about the Remind-fans mailing list