Difference between revisions of "Module:Yesno"

Jump to navigation Jump to search
23 bytes added ,  10:21, 23 March 2013
fix logic for the case where the first positional parameter is "¬"
>Mr. Stradivarius
(tweak logic to make it work like the actual template - the documentation was slightly wrong)
>Mr. Stradivarius
(fix logic for the case where the first positional parameter is "¬")
Line 30: Line 30:
     val = args[1]
     val = args[1]


     -- First deal with the case if val is nil, then deal with other cases.
     -- First deal with the case if val is nil or "¬", then deal with other cases.
     if val == nil then
     if val == nil or val == '¬' then
         return retvals['¬']
         return retvals['¬']
     end
     end
Anonymous user

Navigation menu