what is the meaning of "==" this sign | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

what is the meaning of "==" this sign

14th Sep 2016, 2:30 PM
prateek nandwana
4 Answers
+ 1
This operator tests if the two operands are equals and return true (1) if they are, false (0) if they aren't.
14th Sep 2016, 2:37 PM
Zen
Zen - avatar
+ 1
== is used to check if LHS and RHS are equal, and it differs from = as"=" is used to assign a value to a variable.
14th Sep 2016, 2:40 PM
Ankit Ojha
Ankit Ojha - avatar
+ 1
If you are comparing two values you would use == and if you want to assign values you use =. An example would be: x=2+2 //assignment if(a==b) { do something}
14th Sep 2016, 2:55 PM
Alma Milic
Alma Milic - avatar
0
Equal to
16th Sep 2016, 2:38 AM
Franco Muñiz
Franco Muñiz - avatar