Module:Number table sorting/sandbox: Difference between revisions

Content deleted Content added
deal with empty value
m QEDK moved page Module:Nts/sandbox to Module:Number table sorting/sandbox without leaving a redirect: requested move; consensus at Module talk:Number table sorting
 
(3 intermediate revisions by 2 users not shown)
Line 73:
end
-- allow for empty string as a value
if self.number == nil then
self.number = NEGINF
end
 
if not self.number then
-- error(string.format(
-- "'%s' is not a valid number",
-- tostring(s)
-- ), 0)
if self.number == nil thenNEGINF
end