so... jai :D
This commit is contained in:
23
examples/18-conditions.sx
Normal file
23
examples/18-conditions.sx
Normal file
@@ -0,0 +1,23 @@
|
||||
#import "modules/std.sx";
|
||||
|
||||
main :: () {
|
||||
x:= 32;
|
||||
y:= 40;
|
||||
|
||||
if 0 <= x <= 100 and 0 <= y <= 100 {
|
||||
print("contained");
|
||||
}
|
||||
|
||||
if 0 <= x <= 100 and 0 <= y <= 100 {
|
||||
print("contained");
|
||||
}
|
||||
|
||||
|
||||
if 1000 > x > -100 and 0 <= y <= 100 {
|
||||
print("contained");
|
||||
}
|
||||
|
||||
if 1000 > x >= -100 and 0 <= y <= 100 {
|
||||
print("contained");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user