DOCS: Add the not operator to our expression reference.

This commit is contained in:
Jeremy Wall 2019-02-01 17:20:02 -06:00
parent 619e3d8d2e
commit 39f7afa8fc

View File

@ -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