mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
10 lines
245 B
Plaintext
10 lines
245 B
Plaintext
// Create a local scope for the 'then' expression.
|
|
var a = "out"
|
|
if (true) var a = "in"
|
|
io.write(a) // expect: out
|
|
|
|
// Create a local scope for the 'else' expression.
|
|
var b = "out"
|
|
if (false) "dummy" else var b = "in"
|
|
io.write(b) // expect: out
|