In the lecture, it is said that " = is an odd symbol is doesn’t really equal. It actually is an assignment."
I want to know what does it mean by odd symbol. Thanks you.
He just means you might think you can say
if (a = b) {
But you can’t… it’s just “odd” as in unexpected, because it looks like it should work.
What that code would do is set a to the value of b, which would make the condition then true
a = 2;
b = 4;
if (a = b) {
print (a); // this would print 4
You need to use == to compare.