feat: add logical operators

This commit is contained in:
Ibrahim Abdulhameed committed 2025-09-01 11:48:34 +01:00
1 parent 0bdf9fe3f3
commit 99d67fa4cb
1 file changed
+18
+18
View File
@@ -133,3 +133,21 @@ print(a >= b) -- false
-- less than or equals
print(a <= b) -- true
```
### Logical
```lua
-- and
false and nil --> false
0 and 20 --> 20
10 and 20 --> 20
-- or
true or false --> true
10 or 0 --> 10
12 or 4 --> 12
-- not
not true --> false
```