В Lua я написал следующее:
for s in string.gmatch(path, "([^'\\']+)") do if not s then -- if s ~= nil then table.insert(path_tb, s) print(s) end end
Если я заменю if not s then на if s ~= nil then, я получу другой результат.В чем причина этого?
if not s then
if s ~= nil then
not s истинно, когда s равно нулю или s ложно.
not s
s