Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
odino committed Dec 24, 2018
1 parent ebbf49d commit 2ab6475
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/syntax/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@ Lower or equal than:
1 <= 2 # true
```

## <=>

The combined comparison operator allows to test whether a number
is lower, equal or higher than another one with one statement:

``` bash
5 <=> 5 # 0
5 <=> 6 # -1
6 <=> 5 # 1
```

## &&

Logical AND, which supports [short-circuiting](https://en.wikipedia.org/wiki/Short-circuit_evaluation):
Expand Down

0 comments on commit 2ab6475

Please sign in to comment.