From 85c4ad821d4d02f23364d7bc843d1ed60e91de2f Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Fri, 4 Mar 2022 11:45:37 -0500 Subject: [PATCH] Add note about Remind lacking short-circuit logical operators. --- man/remind.1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/man/remind.1 b/man/remind.1 index b2578338..8f1dc748 100644 --- a/man/remind.1 +++ b/man/remind.1 @@ -3337,6 +3337,18 @@ Notice how we use the zero-argument form of \fBwouldtrig\fR to preserve the correct trigger date so that %b uses the correct substitution date, and that we need to repeat the +3 to make sure the reminder is triggered. +.PP +Note that because \fBRemind\fR does not have short-circuit logical +operators, something like: +.nf + SET a wouldtrig("Mon +7") || wouldtrig("Thu +7") +.fi + +would set the value of wouldtrig() to the date of the following +Thursday. Even though wouldtrig("Mon +7") always returns true, +the logical-OR operator still evaluates wouldtrig("Thu +7") which +\fIalso\fR returns true and sets \fBwouldtrig()\fR. + .RE .TP .B year(dq_date)