Jump to content




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



  • You cannot reply to this topic
4 replies to this topic

#1 Dizzybabe99

  • Members
  • 7 posts

Posted 27 July 2013 - 06:23 PM

A Picture attached to explane all.
Attached Image: 2013-07-28_01.21.19.png

#2 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 27 July 2013 - 06: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.

#3 Dizzybabe99

  • Members
  • 7 posts

Posted 27 July 2013 - 09:04 PM

ok thanks

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 27 July 2013 - 10: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.

#5 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 27 July 2013 - 11:14 PM

Moved to Ask a Pro.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users