This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Dizzybabe99's profile picture

[1.5.2] [Cc 1.53] Not Is Not Working Right

Started by Dizzybabe99, 27 July 2013 - 05:23 PM
Dizzybabe99 #1
Posted 27 July 2013 - 07:23 PM
A Picture attached to explane all.
[attachment=1270:2013-07-28_01.21.19.png]
MysticT #2
Posted 27 July 2013 - 07:48 PM
Not a bug. It should be:

if not (1 > 2) then print("test") end
You were comparing the result of "not 1" (wich will always be false) with the number 2.
Dizzybabe99 #3
Posted 27 July 2013 - 10:04 PM
ok thanks
theoriginalbit #4
Posted 27 July 2013 - 11:52 PM
alternatively just do


if 1 <= 2 then
  print("test")
end

also as it currently stands there are no real bugs within the Lua language, it's almost always misuse or user error, so these types of bug reports are better off in Ask a Pro, not in the Bug report section for the mod.
Lyqyd #5
Posted 28 July 2013 - 12:14 AM
Moved to Ask a Pro.