On 09/09/2015 07:28 AM, Benoît Minisini wrote:
> Hi Kevin, Looking quickly at your live twitch, I noticed that 
> apparently, if I'm not wrong, you are not aware of the difference 
> between: If A And B And C Then And: If A And If B And If C Then "And" 
> must be used for binary computation. "And If" should always be used 
> for tests. It is faster, as it only executes a test if the previous is 
> TRUE, while "And" always evaluates all its operands. I think you will 
> agree to save a few CPU cycles, do you? :-) Regards, 

That is an awesome tip. I actually had wondered if there was a way to do 
this, or if Gambas would abort subsequent tests automatically if one was 
found to be False. I didn't realize I could just stick multiple Ifs in 
there. Thanks!

-- 
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sa...@eightvirtues.com
phone: (770) 853-6271


------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to