Click here to Skip to main content
15,077,931 members
Articles / Programming Languages / C#

Tagged as

Stats

5.4K views
2 bookmarked

The goto-less goto!

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
26 Jan 2011CPOL
If the number of conditions is relatively small, the following code would made sense: bool bFailed = true; if (!condition1_fails) { if(!condition2_fails) { ... if(!conditionN_fails) { bFailed=false; ...

Views

License

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

Share

About the Author

Philippe Mori
Software Developer (Senior)
Canada Canada
Programmer at Maid LABS from 2003 (www.maidlabs.com)

Programmer-Analyst at Viasat Geo Technoligies from 1995 to 2002 (www.viasat-geo.com).

I have studied at École Polytechnique de Montréal in computer engineering.

Comments and Discussions