[prev in list] [next in list] [prev in thread] [next in thread]
List: cgi-list
Subject: SV: [CGI] Silly question about || in an IF statement
From: "Robert Friberg" <robban () it-konsult ! com>
Date: 1998-11-30 9:26:27
[Download RAW message or body]
> if ((length($rc) == 5) || (&fulfilled_yet($em,$rc) == 1)) {
Short-circuit boolean evaluation means the evaluation stops
as soon as the result is known. This is gauranteed in perl
as well as in C.
HTH,
~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^
>
> Robert Friberg
> Perl, Delphi, C developer
> Boras, Sweden
>
~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^
-----------------------------------------------------------------
To unsubscribe, send mail to "majordomo@jann.com" with "unsubscribe cgi-list"
in the body.
The CGI Tips & Tricks website (and archive of the list) is located
at http://www.jann.com/Perl/
cgi-list is hosted by Summit Communication Design (http://www.summitdesign.net).
Summit Communication Design is a full-service web hosting firm
providing web design, cgi programming and inter/intra-net support.
-----------------------------------------------------------------
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic