This bit of code confuses me.
print(gogo) if (gogo == true) then print("yes") elseif (gogo == false) then print("no") end
Why is gogo evaluating to true ? Should it not appear an error?
gogo
true
It does not evaluate to true and cannot, because in Lua 4.0 there is no boolean type.
print(true) -- prints "nil"
Undefined global nil variables by default, so really gogo == true . They are both nil .
nil
gogo == true
Source: https://habr.com/ru/post/1500694/More articles:to configure firefox popup using javascript - javascriptAfter the upgrade, do not load the rows that are inserted into Mybatis3 - spring-mvcRedirecting to the same state of a web stream view causes an exception to nested composites - redirectthe length of the hyphen depends on the type of device (pdf, png) - how can I get short hyphens using pdf? - rWhy do comparison operators in C return 1 if the expression evaluates to true rather than -1? - cWhy are [1..5] returning to Rascal [1,2,3,4]? - rascalrecognition of the end of a video in vimeo embed player in iOS - iosOpenCL - GPU Vector Mathematics (Parallelism Learning Level) - parallel-processingIs the update instruction updated in the update trigger, does the trigger fire? - sqlList for object [] - c #All Articles