mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 04:37:47 +08:00
17 lines
227 B
Plaintext
17 lines
227 B
Plaintext
|
|
## Logical statement test
|
|
|
|
val = 0
|
|
|
|
a = false; b = true;
|
|
if a and b then assert(false) end
|
|
if a or b then va
|
|
else assert(false, '') end
|
|
|
|
get_true = func return true end
|
|
|
|
if get_true() or false
|
|
val = 12
|
|
end
|
|
assert(val == 12)
|