|
|
|
|
|
by lolc
595 days ago
|
|
The example is not just boolean logic! In Lua logical ops, the last evaluated value is returned. The example makes use of that to assign something other than a bool. Not all languages do that. In Java for example, boolean logic always evaluates to a bool. I'm not sure which part of that you missed, but maybe don't go too hard on calling others inexperienced based on your takes. |
|