Quote:
|
Originally Posted by Lance
It is worth noting that Xecutor is correct and expanding upon it to say:
= is your assignment operator
== is your comparison operator
|
Or a bit more simple, because Lance likes difficult words and terms which newbies might not understand...
= is 'becomes', so
NPC Code:
x=10
means that x becomes ten
== is 'the same' or 'equals' so
NPC Code:
if (x==10)
then x is equal to ten
Although you can use
NPC Code:
if (x=10)
because of compability with Java or something, it is strongly adviced not to.