Click here to Skip to main content
11,480,938 members (62,057 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Conditional Operators Shortcuts

, 19 Jan 2013 CPOL 0
Hi,I found this:if ((value | 6 | 8 | 10) == (6 | 8 | 10) && value != 0){ size1 = value;}In this case, there's no many difference in length of your condition. If you've variables with long names, or if many options are possible, this is a shorter condition.Alternatively,...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 19-Jan-13 10:31 Available ProgramFOX
Updates in content. 2 changes had been made.
1 No 19-Jan-13 10:30 Available ProgramFOX

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

ProgramFOX

Belgium Belgium
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150520.1 | Last Updated 19 Jan 2013
Article Copyright 2013 by ProgramFOX
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid