mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 14:48:40 +01:00
14 lines
257 B
Plaintext
14 lines
257 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
|