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???

2 comments
simplified function: function even(n)n=tonumber(n)return n and n%2==0 end
He is a link to a question I asked very similar, https://scriptinghelpers.org/questions/28462/how-does-return-work-and-what-is-it-used-for