This is just out of curiosity I ask...
99% of the code I see anywhere, when using "IF", will be of the format "If (RValue == LValue) ...". Example:
If (variableABC == "Hello World") ...
There are other examples where I see the opposite:
If ("Hello World" == variableABC)
Anyone know how this started and why it's done?
==
, since ifa == "b"
then"b" == a
must also be true. I imagine the first scenario is done to prevent assignment when the you use=
instead of==
on accident. – Secrecy