[Remind-Fans] This expression doesn't seem to evaluate correctly

Rod Johnson rod.c.johnson at gmail.com
Tue Feb 7 08:02:38 EST 2012


On Mon, Feb 6, 2012 at 7:05 PM, David F. Skoll <dfs at roaringpenguin.com> wrote:

> Ok... those requirements are somewhat odd, but I'd write it like this:
>
> SET mydate '2012-04-20'
> #SET mydate '2013-04-28'
>
> # Find out when mydate triggers
> REM [mydate] SATISFY 1
>
> # Adjust
> IF $Tm > 4 || ($Tm == 4 && $Td > 23)
>   REM Monday [mydate] MSG First Monday after mydate
> ELSE
>   REM [mydate] MSG Actually on mydate
> ENDIF
>

Sorry to bother you again Dave but when I try the code above with
remind -dxt, remind complains that $Tm is an undefined variable. I
made the assumption that REM [mydate] SATISFY 1 defines the $Tm and
$Td but i suppose I'm wrong. I'm using version 03.01.07 if that makes
any difference.

Rod


More information about the Remind-fans mailing list