01 | local turkey = 420 |
02 | local monkey = 69 |
03 | function question() |
04 | print ( "Does turkey = monkey" ) |
05 | end |
06 | if turkey = monkey then |
07 | print (yes) |
08 | else |
09 | print (no) |
10 | end |
use == instead of = because = is just to set stuff like
1 | local monkey = 123 |
2 | 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