[Gambas-user] Gambas was live on Twitch
Kevin Fishburne
kevinfishburne at ...1887...
Fri Sep 11 03:52:25 CEST 2015
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: sales at ...1887...
phone: (770) 853-6271
More information about the User
mailing list