Post Reply 
Checking conditions [IF ... THEN ... ELSE] performance
09-14-2015, 09:24 PM (This post was last modified: 09-14-2015 10:17 PM by primer.)
Post: #5
RE: Checking conditions [IF ... THEN ... ELSE] performance
(09-14-2015 09:01 PM)komame Wrote:  I believe that all programming languages are working that way.
yes, indeed, and it's also very usefull to perform consistance checking,
for example
Code:
if( var!=0 AND a/var > b)
here the AND does not check condition a/var> b if var is null. here you avoid checking with inconsistant value (zero denominator)

I mean it's not only a question of performance.
Regards.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Checking conditions [IF ... THEN ... ELSE] performance - primer - 09-14-2015 09:24 PM



User(s) browsing this thread: 1 Guest(s)