Module:TableGenerator: Difference between revisions

Sur (talk | contribs)
m and not 0.
Sur (talk | contribs)
m pattern matching off
Line 40: Line 40:
         -- If the value contains a " 0 " then it will be colored slightly darker
         -- If the value contains a " 0 " then it will be colored slightly darker
         local class = ''
         local class = ''
         if value:find("0") and not value:find("0.") then
         if value:find("0", true) and not value:find("0.", true) then
             class = ' class="darker"'
             class = ' class="darker"'
         end
         end