function checkEven(number) local real_Number = tonumber(number) if real_Number then -- if can be a nuber then if (number%2) then return true else return false end end end
see how he changed the value 'number' from a string into a number, how did he create the value called 'number' because I dont see how he did.
Also if by any change it has to do with him putting it in the parentheses how did he give it a number value???
--"number" is a parameter of the function. If you call the function --with a value to fill that parameter, then "number" will be that value. --The two chunks of code below are equivalent. function checkEven(number) local real_Number = tonumber(number) if real_Number then if number % 2 == 0 then return true else return false end end end print(checkEven(5)) number = 5 local real_Number = tonumber(number) if real_Number then if number % 2 == 0 then print(true) else print(false) end end