Replies: 2 comments
-
It's part of the language, but it's use isn't encouraged - it makes it confusing whether or not it's bit wise and or logical and. Free PR for someone to replace them and any others like it |
Beta Was this translation helpful? Give feedback.
-
I think they are the same in function. But && is more preferable than using 'and' operator. |
Beta Was this translation helpful? Give feedback.
-
found the
and
keyword in C++ land and it really threw me for a loop. Apparently it's exactly the same as&&
?https://github.com/LandSandBoat/server/blob/8e96bfe8e96d93abfb6fff005122e70c7eda94cf/src/map/lua/lua_baseentity.cpp#L14349...L14360
I tested and the lua binding works and obviously it compiles, curious what the thought the impact on consistency/confusion is though.
Beta Was this translation helpful? Give feedback.
All reactions