code_junkie

How to check for equals? (0 == i) or (i == 0)

Nov 11th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. if(DialogResult.OK == MessageBox.Show("Message")) ...
  2.  
  3. if (InterstingValue1 == foo) { } else
  4. if (InterstingValue2 == foo) { } else
  5. if (InterstingValue3 == foo) { }
  6.  
  7. if ("SomeValue".equals(someString)) {
  8. }
  9.  
  10. if(DialogResult.OK == MessageBox.Show("Message"))
  11.  
  12. if (DateClass.SATURDAY == dateObject.getDayOfWeek())
  13.  
  14. if (i = 0) {
  15. }
  16.  
  17. :1 -> x
  18.  
  19. :if(1=x)
Add Comment
Please, Sign In to add comment