Den 05. okt. 2014 23:19, skrev Jussi Lahtinen: > The extra "if" enables short-circuiting > <http://en.wikipedia.org/wiki/Short-circuit_evaluation> and thus it is very > useful in some cases. > > Example, you can write "if then" structures like this: > If hObject <> Null And If hObject.SomeProperty = True Then > > Without the extra "if" this would fail, if the hObject would be null. > > > > Jussi > > > On Sun, Oct 5, 2014 at 11:00 PM, Jørn Erik Mørne <ep...@joernerik.com> > wrote: > >> Den 05. okt. 2014 21:11, skrev Tobias Boege: >>> On Sun, 05 Oct 2014, J??rn Erik M??rne wrote: >>>> Why is it not allowed to use AND and OR in the same logical test? >>>> >>> It is allowed and works: >>> >>> $ gbx3 -e "(False And Not False) Or (False Or Not False)" >>> True >>> >>> Maybe you refer to the AND IF and OR IF keywords in an IF statement? >>> >>> Regards, >>> Tobi >>> >> Aha, yes you're right :) Removing an extra IF that had sneaked in was >> the solution. >> >> >> ------------------------------------------------------------------------------ >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> >> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user
Ahh! That's great :) Very good to know! Thanks! ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user