mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
Lua operator 'not' has higher precedence than '==', so the statement
not x == "something"
is equivalent to:
(not x) == "something"
which will always be false, since the value of 'not x' will be either
'true' or 'false' and the string "something" is not the boolean 'true'
or 'false'. This is usually resolved by using the '~=' operator.
9.0 KiB
9.0 KiB