Raised This Month: $ Target: $400
 0% 

General Question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-06-2012 , 05:13   Re: General Question
Reply With Quote #1

Quote:
Originally Posted by ProIcons View Post
(Operation1 && Operation2) | True && False = Does Not pass
(Operation1 && Operation2) | False && True = Does Not Pass
(Operation1 && Operation2) | False && False = Does Not Pass
(Operation1 && Operation2) | True && True = Pass.

(Operation1 || Operation2) | True || False = Pass
(Operation1 || Operation2) | False || True = Pass
(Operation1 || Operation2) | False || False = Does Not Pass
(Operation1 || Operation2) | True || True = Pass.
It is not his question.

Fysiks is right, on a && check, if 1st check is false, other ones are not checked, on a || check, if 1st condition is true, other ones are not checked.
That's why it's better to put fast checks (vars checks) before checks that imply natives calls or lot of compute.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 00:24.


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