Files
wren/test/logical_operator/or_truth.wren
T

9 lines
240 B
Plaintext
Raw Normal View History

// False and null are false.
IO.print(false || "ok") // expect: ok
IO.print(null || "ok") // expect: ok
// Everything else is true.
IO.print(true || "ok") // expect: true
IO.print(0 || "ok") // expect: 0
IO.print("s" || "ok") // expect: s