mirror of
https://github.com/irmen/prog8.git
synced 2024-09-10 09:54:32 +00:00
20 lines
370 B
Lua
20 lines
370 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte x = 10
|
|
ubyte y = 2
|
|
txt.print_ub(5<x and x<=20)
|
|
txt.nl()
|
|
txt.print_ub(5<x and x<=9)
|
|
txt.nl()
|
|
txt.print_ub(5<x<=9)
|
|
txt.nl()
|
|
txt.print_ub(5<(x-y)<=9<y)
|
|
txt.nl()
|
|
txt.print_ub(5<(x-y)<=9<(y+40))
|
|
txt.nl()
|
|
}
|
|
}
|