Skip to content

Commit ddac13e

Browse files
committed
Update ternary operator
1 parent 2e1c731 commit ddac13e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ There are two ways to express `if`...`else` statement
152152
condition ? m : n
153153
```
154154

155+
```WebAssembly
156+
(get_local $condition)
157+
(select
158+
(get_local $m)
159+
(get_local $n)
160+
)
161+
```
162+
155163
```WebAssembly
156164
(select
157165
(get_local $m)

0 commit comments

Comments
 (0)