Skip to content

Commit

Permalink
Move ternary operator to the future
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksvensson committed Nov 3, 2024
1 parent e5dbb55 commit ba04ca0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.PHONY: build
build:
@npm install
@npx docusaurus start
11 changes: 11 additions & 0 deletions docs/future/ternaries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
sidebar_position: 100
---

# Ternaries

### Ternary operator

```mew
let foo = bar == 1 ? true : false;
```
6 changes: 0 additions & 6 deletions docs/language/control/conditions.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,4 @@ else if foo < 0 {
else {
// foo is greater than 0
}
```

### Ternary operator

```mew
let foo = bar == 1 ? true : false;
```

0 comments on commit ba04ca0

Please sign in to comment.