Q:

Order of items being compared? 

I've seen this around, but never heard a clear explanation of why...  This is really for any language, not just C# or VB.NET or Perl or whatever. 
When comparing two items, sometimes the "check" value is put on the left side instead of the right.   Logically to me, you list your variable first and then the value to which you're comparing.   But I've seen the reverse, where the "constant" is listed first. 
What (if any) gain is there to this method? 
So instead of:
if (myValue > 0)

I've seen:
if (0 < myValue)

or
if (Object. GimmeAnotherObject() ! = null)

is replaced with:
if (null ! = Object. GimmeAnotherObject())

Any ideas on this? 
TIA! 
Kevin

A:

Some developers put the constant on the left like so
if(0 = myValue)

This is because you will get an error from the compiler, since you can't assign 0 a value.  Instead, you will have to change it to
if(0 == myValue)

This prevents lots of painful debugging down the road, since typing
if(myValue = 0)

is perfectly legal, but most likely you meant
if(myValue == 0)

The first choice is not what you want.  It will subtly change your program and cause all sorts of headaches.  Hope that clarifies!