Click here to Skip to main content
13,189,884 members (61,022 online)
Click here to Skip to main content

Tagged as

Stats

0 views
Posted 19 Jan 2013

Conditional Operators Shortcuts

, 19 Jan 2013
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 4:31 Available ProgramFOX
Updates in content. 2 changes had been made.
1 No 19-Jan-13 4: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
I'm a hobbyist programmer. I work mostly in C#, JavaScript, and Python. I also like chess; you can find me on Lichess.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171016.2 | Last Updated 19 Jan 2013
Article Copyright 2013 by ProgramFOX
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid