From dc19bac1954d7d501cdf9db2ad9c48e68ef196b0 Mon Sep 17 00:00:00 2001 From: Andrew Quinn <53230903+hiAndrewQuinn@users.noreply.github.com> Date: Sat, 1 Mar 2025 10:33:43 +0200 Subject: [PATCH] Add comment about jury-rigging an `xor` --- Documentation/WritingWithInk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/WritingWithInk.md b/Documentation/WritingWithInk.md index 9cb3112a..70e7bad1 100644 --- a/Documentation/WritingWithInk.md +++ b/Documentation/WritingWithInk.md @@ -587,7 +587,7 @@ The above "multiple conditions" are really just conditions with an the usual pro * { not (visit_paris or visit_rome) && (visit_london || visit_new_york) } [ Wait. Go where? I'm confused. ] -> visit_someplace -For non-programmers `X and Y` means both X and Y must be true. `X or Y` means either or both. We don't have a `xor`. +For non-programmers `X and Y` means both X and Y must be true. `X or Y` means either or both. We don't have a `xor`, but you could jury rig one with `(X and not Y) or (Y and not X)`. You can also use the standard `!` for `not`, though it'll sometimes confuse the compiler which thinks `{!text}` is a once-only list. We recommend using `not` because negated boolean tests are never that exciting.