0

What does "==" mean?

for example i have "break a if a==8

30th Dec 2016, 12:40 PM
Grzegorz Bach
Grzegorz Bach - avatar
3 Answers
+ 2
== checks equality a=2 a==1+1 is true
30th Dec 2016, 12:48 PM
Sandeep Chatterjee
+ 2
double = is the comparison operator. That means you compare the value of the left side (a) to the one on the right side (8). Your code checks if a (left side of comparison) has the same value as 8 (right side). So if a has the value of 8 it returns true otherwise false.
30th Dec 2016, 12:48 PM
qobus
0
equal checking
30th Dec 2016, 1:04 PM
Suman Dey
Suman Dey - avatar