feat: execute short-circuit boolean expressions
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
in_range proc(value, low, high int) bool {
|
||||
return value >= low and value < high
|
||||
}
|
||||
|
||||
main proc() bool {
|
||||
return (
|
||||
in_range(5, 0, 10)
|
||||
and !in_range(12, 0, 10)
|
||||
or in_range(20, 0, 10)
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user