Raised This Month: $ Target: $400
 0% 

[HELP] Formatex error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-27-2015 , 16:46   Re: [HELP] Formatex error
Reply With Quote #11

IMO, you should never do more than a couple nested ternary operators. If you need to do more than that, you should switch to an if-else-if structure to decide which one you will use and then pass the chosen one to formatex().

Using too many nested ternary operators unnecessarily obfuscates the code making it very difficult to understand.
__________________

Last edited by fysiks; 12-27-2015 at 17:52. Reason: Added link for the definition of ternary operator.
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode