Module talk:ProcessArgs

p.merge simplification
can be simplified to. for _, x in ipairs{true, false} do for _, y in ipairs{42, } do    local cond = not x or x and y ~=  mw.log(string.format('* %q, %q, %q', tostring(x), tostring(y), tostring(cond))) end end
 * "true", "42", "true"
 * "true", "", "false"
 * "false", "42", "true"
 * "false", "", "true"

for _, x in ipairs{true, false} do for _, y in ipairs{42, } do    local cond = not x or y ~=  mw.log(string.format('* %q, %q, %q', tostring(x), tostring(y), tostring(cond))) end end --BryghtShadow (talk) 18:16, 4 April 2020 (UTC) Edit: Forgot to nowiki the double apostrophe, woops. --BryghtShadow (talk) 18:18, 4 April 2020 (UTC)
 * "true", "42", "true"
 * "true", "", "false"
 * "false", "42", "true"
 * "false", "", "true"


 * , thanks for pointing it out. – Sonicwave talk  18:59, 4 April 2020 (UTC)