BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. HTML5 Canvas
  2. Ruby
  3. iPhone/iPad
  4. Spring Web Flow
  5. REST
  1. jQuery Selectors
  2. Spring Config.
  3. Java
  4. Ajax
  5. Java Concurrency

Link Details

Link 84487 thumbnail
User 1 avatar

By rick
via igoro.com
Published: Jun 02 2008 / 16:08

While playing around with C#, I stumbled upon a neat trick that works in all C-based languages. I realized that there is a very clean way to express a multi-clause if statement by composing ternary conditional operators like this.
  • 20
  • 6
  • 1995
  • 0

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.