From 39f7afa8fcc483f421d96dcd13bbb33c4820f5a1 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Fri, 1 Feb 2019 17:20:02 -0600 Subject: [PATCH] DOCS: Add the not operator to our expression reference. --- docsite/site/content/reference/expressions.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docsite/site/content/reference/expressions.md b/docsite/site/content/reference/expressions.md index 81a4089..bf6cc9b 100644 --- a/docsite/site/content/reference/expressions.md +++ b/docsite/site/content/reference/expressions.md @@ -146,14 +146,22 @@ let lst = [1, "two", {three = 3}]; ### Boolean Operators -UCG has the standard boolean operators: `&&` and `||`. Both of them short circuit and they require the expressions on each -side to be boolean. +UCG has the standard boolean operators: `&&` and `||`. Both of them short +circuit and they require the expressions on each side to be boolean. ``` true && false == false; false || true == true; ``` +In addition to the binary operators `&&` and `||` UCG also has the unary +operator `not` which reverses a boolean value. + +``` +not true == false; +not false == true; +``` + #### Operator Precedence UCG binary operators follow the typical operator precedence for math. `*` and