Talk:Lua/Errors

From Wikiversity
Jump to navigation Jump to search

In "understand reciprocal2 function"[edit source]

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 source]

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]