Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ BrighterScript adds several new features to the BrightScript language such as na
- ```print `Hello ${firstNameVar}` ```.
- [null-coalescing operator](https://github.com/rokucommunity/brighterscript/blob/master/docs/null-coalescing-operator.md)
- `user = m.user ?? getDefaultUser()`
- [Select case statements](https://github.com/rokucommunity/brighterscript/blob/master/docs/select-case.md)
- `select case key : case "left", "right" : moveHorizontally() : case else : end select`
- Additional Language features coming soon
- null-conditional operator: `userSettings = m.user?.account?.profile?.settings`
- and [more](https://github.com/rokucommunity/BrighterScript/blob/master/docs/readme.md)...
Expand Down
12 changes: 12 additions & 0 deletions docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ Plugins can be used to manipulate code at any point during the program lifecycle
print /hello world/ig
```

## [Select Case Statement](select-case.md)
```brighterscript
select case numericValue
case 1
print "one"
case 6, 7, 8
print "between 6 and 8, inclusive"
case else
print "no matching case"
end select
```

## [Source Literals](source-literals.md)

```brighterscript
Expand Down
Loading
Loading