Raised This Month: $ Target: $400
 0% 

[HELP] Save Model Permanent


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 03-19-2014 , 18:21   Re: [HELP] Save Model Permanent
Reply With Quote #10

What's the mess? You're not supposed to read the vault as a book.

The first one is one less memory call for the variable value, so that would be more efficient. But that's really not a concern here so it really makes no difference whatsoever. I would consider the second one messier because you would have to make the if statements look the same.

In the end you are the author of your plugin and you decide which method you want to use. You are the one who are going to maintain it.
I'll show you a "cleaner" way tomorrow.
__________________
Black Rose 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 05:54.


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