Closed dequis closed 9 years ago
What does this even do, @dequis
yYy unless not var yYy
function filters_module.unless(text, ctext) -- text == "not var"
- local existence = ctext[text] ~= nil -- ctext["not var"] == nil
local negation = true
text = string.gsub(text, "^not ", function() negation = false; return ""; end)
-- text == "var"
+ local existence = ctext[text] ~= nil -- ctext["var"] == "value"
Thats some kooky lua right there
FIX CONSTANT NEGATION OF EXISTENCE