I want to know is return false / return true different, And if it was different please tell me how its work
It is different!
Remember that "false" and "true" are boolean values.
--Boolean overview local myBool = true if myBool == true then print("my bool is true!") else print("my bool is false!") end
Experiment with that a little!
On to the "return" part.
Returning is a step in a function which: exits the function, and passes value(s) back to the caller.
So let's try it out with a less than 10 function!
function isLessThanTen(num) if num < 10 then return true else return false end end print(isLessThanTen(5)) print(isLessThanTen(100))
no its not really different it depends on the conditions its being returned to like
function food() return true end if food then --eats end --or function food() return false end if not food then --does not eat end