Skip to content

Commit

Permalink
Update Conditions.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatSageEqualToHeaven authored Mar 27, 2024
1 parent beac9f5 commit 7679ba0
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions tests/Staging/Conditions.lua
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
getfenv()

local a = 5
if a then
print("IF", a)
string.sub("valid", 1,2)
end
if not a then
print("NOTIF", a)
error('invalid')
end
if a == math.floor(1) then
a += 1
print("EQ", a)
error('invalid')
else
end
if a ~= math.floor(1) then
a += 1
print("NEQ", a)
string.sub("valid", 1,2)
end
if a >= math.floor(1) then
a += 1
print("GTE", a)
string.sub("valid", 1,2)
end
if a > math.floor(1) then
a += 1
print("GT", a)
string.sub("valid", 1,2)
end
if a < math.floor(1) then
a += 1
print("LT", a)
error('invalid')
end
if a <= math.floor(1) then
a += 1
print("LTE", a)
error('invalid')
end

OK()

0 comments on commit 7679ba0

Please sign in to comment.