[Remind-Fans] best way to handle a list of dates

Ian! D. Allen idallen at idallen.ca
Thu Dec 18 17:02:19 EST 2014


What's the best way to handle a reminder that occurs on a list of a dozen
or more dates that don't have a regular pattern?  Can FSET simplify this?

PUSH-OMIT-CONTEXT
    set p ""
    IFTRIG Jan  5 2015 ++5 SKIP
       set p trigdate()
    ENDIF
    IFTRIG Mar 19 2015 ++5 SKIP
       set p trigdate()
    ENDIF
    IFTRIG May 29 2015 ++5 SKIP
       set p trigdate()
    ENDIF
    IFTRIG Jun  9 2015 ++5 SKIP
       set p trigdate()
    ENDIF
    IFTRIG Sep 20 2015 ++5 SKIP
       set p trigdate()
    ENDIF
    IFTRIG Nov  1 2015 ++5 SKIP
       set p trigdate()
    ENDIF
#   ... etc ...
    IF p
       set d trigger(p) + " PRIORITY 1030"
       set t "Biodanza"
       FSET _wfun(x) choose(x, 4, 2, 1)
       REM [d] SKIP WARN _wfun MSG %"%"[t] %b%
       REM [d] SKIP SPECIAL HTML <a href="http://www.biodanza.ca/">[t]</a>
    ENDIF
POP-OMIT-CONTEXT

-- 
| Ian! D. Allen  -  idallen at idallen.ca  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: 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/


More information about the Remind-fans mailing list