0

If statements: == vs =

What is the difference between the operators == and = ?

10th Dec 2017, 6:30 PM
Joshua
3 Answers
10th Dec 2017, 6:35 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 4
a == 3 checks whether a is equal to 3 a = 3 sets the value of a to 3
10th Dec 2017, 6:34 PM
Dextozz
Dextozz - avatar
0
Sorry guys - understood it!
10th Dec 2017, 6:33 PM
Joshua