Operands | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Operands

what is the difference between equal to and identical and also greater than ,less than equal to....

5th Aug 2017, 12:29 PM
Darwin
Darwin - avatar
2 Answers
0
Starting off "=" means you assign a value to something. Example "x = 5" so x is now 5. The == checks if something is equal to a value like "if x is equal to 5, then do whatever" <=, and >= works almost the same as == except it checks if the value is greater than for example 5 and if the value is equal to 5 or greater such as 6, or 7 etc. and the same goes for <= except it checks if the value is less than 5 or equal to 5. I tried my best to explain this lol. I know I am terrible at explaining stuff that's why I usually dont but I figured I should atleast try.
5th Aug 2017, 2:41 PM
Glo-Ray
0
nice explaination ...I have understand well abut this..thanks
5th Aug 2017, 3:23 PM
Darwin
Darwin - avatar