mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
9 lines
305 B
Plaintext
9 lines
305 B
Plaintext
// False and null are false.
|
|
if (false) IO.print("bad") else IO.print("false") // expect: false
|
|
if (null) IO.print("bad") else IO.print("null") // expect: null
|
|
|
|
// Everything else is true.
|
|
if (true) IO.print(true) // expect: true
|
|
if (0) IO.print(0) // expect: 0
|
|
if ("") IO.print("empty") // expect: empty
|