View Single Post
  #4  
Old 09 Jul 2012, 06:47
Badshah93's Avatar
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Real name: Aayush Agrawal
for one liner codes i prefer using ternary operators over if/else statement.

So, this code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Can be changed to


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Saves 4 line and easier to scan.

Last edited by Badshah93; 09 Jul 2012 at 06:55.
Reply With Quote