This one-line reminder file "r" gives an error message because trigdate()
is not set and the subtraction has mixed types:

REM SPECIAL [ "COLOR 66 66 66 " + iif( (trigdate()-today()) == 0, "FOO", "BAR" 
) ]

$ remind -v -dx r
trigdate() => 0
today() => 2016-06-12
0 - 2016-06-12 => Type mismatch
r(1): REM SPECIAL [ "COLOR 66 66 66 " + iif( (trigdate()-today()) == 0, "FOO", 
"BAR" ) ]
`-': Type mismatch
       Type mismatch
No reminders.

This equivalent one-line reminder file "r" works fine:

REM SPECIAL COLOR 66 66 66 [ iif( (trigdate()-today()) == 0, "FOO", "BAR" ) ]

$ remind -v -dx r
trigdate() => 2016-06-12
today() => 2016-06-12
2016-06-12 - 2016-06-12 => 0
0 == 0 => 1
iif(1, "FOO", "BAR") => "FOO"
FOO

I would like both files to behave nicely and not issue error messages.

In the first example above, I think Remind needs to always set trigdate()
when evaluating SPECIAL lines, at least in cases where an expression is
being used.

-- 
| Ian! D. Allen, MMath  -  [email protected]  -  Ottawa, Ontario, Canada
| Home: http://idallen.com/  Contact Improv Dance: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/
_______________________________________________
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

Reply via email to