[classad-users] Newbie Question: Evaluation of logical expressions


Date: Mon, 4 Feb 2002 03:10:57 -0600 (CST)
From: Uwe Maurer <uma@xxxxxxxxxxx>
Subject: [classad-users] Newbie Question: Evaluation of logical expressions
Hi,

can someone tell me, if classadd Operators && (logical and) and || (logical
or) always compute their operands or if there's a shortcut as in the C
programming language?

To give an example:

Expression:

   x == 1 && some_func(foo)

Is "some_func(foo)" called if "x == 1" evaluates to "false" or is it
bypassed.

Thanks in advance,
Uwe
Condor Classads Info:
http://www.cs.wisc.edu/condor/classad/




[← Prev in Thread] Current Thread [Next in Thread→]