On 2026-03-24 13:59, Remind list wrote:
> > > REM Feb May Aug Nov 25 MSG hi
> > > REM Feb 10 15 20 MSG hi
> > > REM Feb May Aug Nov 10 15 20 MSG hi
>
> The two ways I can immediately think of to do the above are:
>
> 1) Use SATISFY:
>
> REM 25 SATISFY [isany($Tm, 2, 5, 8, 11)] MSG hi
> REM Feb SATISFY [isany($Td, 10, 15, 20)] MSG hi
> REM SATISFY [isany($Td, 10, 15, 20) && isany($Tm, 2, 5, 8, 11)] MSG hi
hah, somehow I'd missed the addition of isany(), and attempting to
implement this I thought "this would be really handy if there was some
sort of "does this match any of these other values?" type function :-D
Yes, this method is *definitely* more elegant than the INCLUDECMD
version.
I suspect that it would even work well for the other recent INCLUDECMD
case for an event that repeats at arbitrary dates, something like
REM SATISFY [isany($T, '2026-5-13', '2026-7-21', ...)] \
MSG Arbitrary event dates
Thanks for preemptively implementing something I'd wanted :-)
-tim
--
_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/