local turkey = 420
local monkey = 69
function question()
print("Does turkey = monkey")
end
if turkey = monkey then
print(yes)
else
print(no)
end
COMMUNITY QUESTION
Why does the "=" have a syntax error? Trying to prove that turkey is superior to MONKE
1 answer
use == instead of = because = is just to set stuff like
local monkey = 123
local turkey = 31
monkey = turkey will set monkey to 31 == in the other hand is an math operation(not quite) and is used to compare, there are others like ~= for checking if 2 values is different
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I recommend you look at the operators you can use to add on