AmiracIe
|
  |
| Joined: 13 Feb 2014 |
| Total Posts: 1362 |
|
| |
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 14 Aug 2014 06:41 PM |
= is to define a variable, == returns a bool telling whether the two things being compared are equal to eachother. print(5==7) >false print(7==7) >true |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2014 06:42 PM |
= is for setting a variable
a = 7 b = "WHEE" c = {1,2,3}
== is for testing equality
print(1+1 == 2) >true
print(1+1 == 100000) >false
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::] |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2014 06:42 PM |
Prertty sure that = is for situations like transparency = false
and == is for ex. if reloading == false /\ | pretty sure if errors if only 1 = is used
|
|
|
| Report Abuse |
|
|
AmiracIe
|
  |
| Joined: 13 Feb 2014 |
| Total Posts: 1362 |
|
|
| 14 Aug 2014 06:45 PM |
| Thanks for the quick answer! I would of consulted the wiki, but the search tool isn't very effective :( |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2014 07:04 PM |
1 = 2 is used when you want to set 1 to equal 2, so 1 is now 2.
1 == 2 is used when checking to see if 1 equals two.
If you look closely, I don't give a crap. |
|
|
| Report Abuse |
|
|