Talk:Lua/Errors

Latest comment: 8 years ago by Youni Verciti in topic The result should be similar to

In "understand reciprocal2 function"

edit

4-if tonumber(value) == nil creates a conditional code block and tests to see if value is numeric. If it is not, tonumber returns nil and an error is generated.

I understand that convert the value in numeric and evaluate if the result is nil. if so it generate en error. In both case value isn't numeric convertible or is numeric but equal zero generate error. Best regards --Youni Verciti (discusscontribs) 13:48, 1 February 2016 (UTC)Reply

The result should be similar to

edit

Something doesn't match in this section, have a look on my own Lua errors (fr). --Youni Verciti (discusscontribs) 15:41, 1 February 2016 (UTC)Reply

Return to "Lua/Errors" page.