Does ABSL (ByD Script) support Short Circuit Evaluation?

Hi,
short question:
Does ABSL (ByD Script) support Short Circuit Evaluation?
For example the following code snippet:
var Call_query;
Call_query = !this.LastChangeIdentity.IsSet() || (this.LastChangeIdentity.UUID.Content != CurrentIdentityUUID.Content);
Will "this.LastChangeIdentity.UUID.Content" be evaluated and cause me into trouble if not initialized?
PS: Is there a language specification available?

I found something, which looks like a specification.
See within the Business Center Wiki -> ByD Studio -> Best Practices for Implementation,
section 'Best Practice for Business Object definition and scripting',
download ' Syntax for Actions and Events.pdf'.
Within this PDF, see section 'Logical Expressions'.
Cite: The logical u201Candu201D (&&) and u201Coru201C (||) operators always evaluate the overall expression to a boolean value (u201Ctrueu201D or u201Cfalseu201D)
This sounds to me, that Short Circuit Evaluation is not supported.
BUT: There is no version number nor time stamp nor something else, which points out the status of this document.
Can someone (from SAP) verify this?

Similar Messages

  • Pl/sql boolean expression short circuit behavior and the 10g optimizer

    Oracle documents that a PL/SQL IF condition such as
    IF p OR q
    will always short circuit if p is TRUE. The documents confirm that this is also true for CASE and for COALESCE and DECODE (although DECODE is not available in PL/SQL).
    Charles Wetherell, in his paper "Freedom, Order and PL/SQL Optimization," (available on OTN) says that "For most operators, operands may be evaluated in any order. There are some operators (OR, AND, IN, CASE, and so on) which enforce some order of evaluation on their operands."
    My questions:
    (1) In his list of "operators that enforce some order of evaluation," what does "and so on" include?
    (2) Is short circuit evaluation ALWAYS used with Boolean expressions in PL/SQL, even when they the expression is outside one of these statements? For example:
    boolvariable := p OR q;
    Or:
    CALL foo(p or q);

    This is a very interesting paper. To attempt to answer your questions:-
    1) I suppose BETWEEN would be included in the "and so on" list.
    2) I've tried to come up with a reasonably simple means of investigating this below. What I'm attempting to do it to run a series of evaluations and record everything that is evaluated. To do this, I have a simple package (PKG) that has two functions (F1 and F2), both returning a constant (0 and 1, respectively). These functions are "naughty" in that they write the fact they have been called to a table (T). First the simple code.
    SQL> CREATE TABLE t( c1 VARCHAR2(30), c2 VARCHAR2(30) );
    Table created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE pkg AS
      2     FUNCTION f1( p IN VARCHAR2 ) RETURN NUMBER;
      3     FUNCTION f2( p IN VARCHAR2 ) RETURN NUMBER;
      4  END pkg;
      5  /
    Package created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY pkg AS
      2 
      3     PROCEDURE ins( p1 IN VARCHAR2, p2 IN VARCHAR2 ) IS
      4        PRAGMA autonomous_transaction;
      5     BEGIN
      6        INSERT INTO t( c1, c2 ) VALUES( p1, p2 );
      7        COMMIT;
      8     END ins;
      9 
    10     FUNCTION f1( p IN VARCHAR2 ) RETURN NUMBER IS
    11     BEGIN
    12        ins( p, 'F1' );
    13        RETURN 0;
    14     END f1;
    15 
    16     FUNCTION f2( p IN VARCHAR2 ) RETURN NUMBER IS
    17     BEGIN
    18        ins( p, 'F2' );
    19        RETURN 1;
    20     END f2;
    21 
    22  END pkg;
    23  /
    Package body created.Now to demonstrate how CASE and COALESCE short-circuits further evaluations whereas NVL doesn't, we can run a simple SQL statement and look at what we recorded in T after.
    SQL> SELECT SUM(
      2           CASE
      3              WHEN pkg.f1('CASE') = 0
      4              OR   pkg.f2('CASE') = 1
      5              THEN 0
      6              ELSE 1
      7           END
      8           ) AS just_a_number_1
      9  ,      SUM(
    10           NVL( pkg.f1('NVL'), pkg.f2('NVL') )
    11           ) AS just_a_number_2
    12  ,      SUM(
    13           COALESCE(
    14             pkg.f1('COALESCE'),
    15             pkg.f2('COALESCE'))
    16           ) AS just_a_number_3
    17  FROM    user_objects;
    JUST_A_NUMBER_1 JUST_A_NUMBER_2 JUST_A_NUMBER_3
                  0               0               0
    SQL>
    SQL> SELECT c1, c2, count(*)
      2  FROM   t
      3  GROUP  BY
      4         c1, c2;
    C1                             C2                               COUNT(*)
    NVL                            F1                                     41
    NVL                            F2                                     41
    CASE                           F1                                     41
    COALESCE                       F1                                     41We can see that NVL executes both functions even though the first parameter (F1) is never NULL. To see what happens in PL/SQL, I set up the following procedure. In 100 iterations of a loop, this will test both of your queries ( 1) IF ..OR.. and 2) bool := (... OR ...) ).
    SQL> CREATE OR REPLACE PROCEDURE bool_order ( rc OUT SYS_REFCURSOR ) AS
      2 
      3     PROCEDURE take_a_bool( b IN BOOLEAN ) IS
      4     BEGIN
      5        NULL;
      6     END take_a_bool;
      7 
      8  BEGIN
      9 
    10     FOR i IN 1 .. 100 LOOP
    11 
    12        IF pkg.f1('ANON_LOOP') = 0
    13        OR pkg.f2('ANON_LOOP') = 1
    14        THEN
    15           take_a_bool(
    16              pkg.f1('TAKE_A_BOOL') = 0 OR pkg.f2('TAKE_A_BOOL') = 1
    17              );
    18        END IF;
    19 
    20     END LOOP;
    21 
    22     OPEN rc FOR SELECT c1, c2, COUNT(*) AS c3
    23                 FROM   t
    24                 GROUP  BY
    25                        c1, c2;
    26 
    27  END bool_order;
    28  /
    Procedure created.Now to test it...
    SQL> TRUNCATE TABLE t;
    Table truncated.
    SQL>
    SQL> var rc refcursor;
    SQL> set autoprint on
    SQL>
    SQL> exec bool_order(:rc);
    PL/SQL procedure successfully completed.
    C1                             C2                                     C3
    ANON_LOOP                      F1                                    100
    TAKE_A_BOOL                    F1                                    100
    SQL> ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL=0;
    Session altered.
    SQL> exec bool_order(:rc);
    PL/SQL procedure successfully completed.
    C1                             C2                                     C3
    ANON_LOOP                      F1                                    200
    TAKE_A_BOOL                    F1                                    200The above shows that the short-circuiting occurs as documented, under the maximum and minimum optimisation levels ( 10g-specific ). The F2 function is never called. What we have NOT seen, however, is PL/SQL exploiting the freedom to re-order these expressions, presumably because on such a simple example, there is no clear benefit to doing so. And I can verify that switching the order of the calls to F1 and F2 around yields the results in favour of F2 as expected.
    Regards
    Adrian

  • Help!!! e66 short circuiting?

    Hi there,
    I was working and using my e66 perfectly until about a month ago. What happened was that a couple seconds after getting to the main screen upon opening the phone, the camera function would automatically start, putting the phone in camera mode. Then it would be constantly revert back from camera mode to the main ``desktop` screen, preventing me from being able to do anything else. It would also go to the email inbox and back waiting for me to type a message. I tried all resets including the hard reset, removed sim, memory cards as well-no luck.
    Any ideas? Does this sound like a short circuit?
    Thanks

    Maybe problem is from the keypad. does this happen when keypad is locked too?!
    Anyway, my advice is take it to Nokia Care center asap.
    Click on the Kudos Star, if you find my post helpful!

  • Short Circuit on Inductor

    Hi..
    I have a simple query. How does Multisim behave to a short circuit? I take a DC source connected to an inductor. When I make it short, it should show me a msg like "The inductor gets burnt" or something like that. In stead, it shows a straignt line in an oscilloscope.
    I can't prove this thory in Multisim, "A short circuit is an accidental low-resistance connection between two nodes of an electrical circuit that are meant to be at different voltages. This results in an excessive electric current (overcurrent) limited only by the Thevenin equivalent resistance of the rest of the network and potentially causes circuit damage, overheating, fire or explosion."
    I shall be glad to receive the exact solution.
    Solved!
    Go to Solution.

    Do not know if this will help, but there are components in the database in BASIC>RATED VIRTUAL. that actually simulate being "blown" by excessive current or voltage.
    Another option would be to have two simulator circuits on screen at the same time. One with the fault and one without it. Hook Multisimeter/O-scopes to both circuits to demonstrate how the fault effects the voltages/currents in the circuit.
    Multisim usually does not scream at you when a short occurs as most voltage sources are idea and really not affected  by shorting across them. The ideal sources can handle the current within the simulator without "blowing" so to speak. I know this isn't what happens in reality, but everyone needs to keep this in mind when designing a circuit. Always be sure of the current draw from the source and wheither the "real" source can handle it as well as well as the "real" components in that circuit.
    One other point. I notice you said you were using an inductor. All of Multisim inductors are ideal and have no internal resistance. Therefore, in a DC circuit they would only be a intial impedence there as the voltage was switched from  0VDC to 12VDC and then it would act as a short anyway. They are pure reactance only and this means that only in an AC Circuit would they display resistive properties. In order to model the DC resistance of an inductor in MS you have to have a series resistor tied to it.
    I agree with you that there should be some type of warning that a short is occuring in the spreadsheet or somewhere.
    I hope some of my ramblings have helped here.
    Message Edited by lacy on 09-02-2008 05:18 PM
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day

  • Short-circuiting boolean expressions

    There is a term used in other languages to describe the behavior of compiled code which evaluates boolean expressions: short circuiting. Basically, it means that if a term in an expression determines its value, then following terms never get evaluated, since they are irrelevant. For example, I have noticed that this always works in AppleScript:
    if class of x is not integer or x > 32 then . . . .
    But this will throw an exception if x is something that can’t be coerced into a number:
    if x > 32 or class of x is not integer then . . . .
    It looks to me that the reason the first always works is that Applescript is short-circuiting, and therefore there is no attempt to evaluate the inequality if x is of inappropriate class.
    Does anyone know if Applescript’s behavior is sufficiently well defined that I can be confident it will always short circuit? I know I can avoid the issue by breaking such expressions into separate, nested, if statements. If there is no such assurance that is what I will probably make a habit of doing. But I thought I'd ask if this is really necessary.

    Hello
    Short-circuiting is well-defined in AppleScript.
    cf. ASLG > Operator References (p.179 of ASLG pdf)
    http://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/Appl eScriptLangGuide/AppleScriptLanguageGuide.pdf
    Regards,
    H

  • Can I extend the scripting support through the SDK?

    I need to create an automated process of saving different layers from documents as different file formats. Unfortunately there is no scripting support for exporting to EMF-format, which I need to do. I glanced on the possibility of calling a self-defined action from my script, but I need to automatically set the output folder and name of the exported files which apparently isn't possible.
    In my frustration I've started to think about a more "advanced" solution, which is: Can I somehow extend Illustrator's scripting support, to be able to export files as EMF? I can't even find how to export files to EMF in the SDK documentation, so I feel a bit lost.
    Has someone done something like this? Or even more desirable, does someone have a better solution to this?
    Thanks!
    Johannes

    Dear Johannes,
    If I had no experience with the SDK, and I only needed a solution as described, I would certainly prefer a scripting solution.
    In that case, I would recommend saving the file to a fixed path and file name with an action or script.
    Then a script could move/rename the file to where you would like it saved. As long as it was being moved to the same drive, the difference in performance would be imperceptible.
    You didn't mention what scripting environment you are using, however, this would be trivial with AppleScript and most likely any scripting language you might be using. If you are using AppleScript, I could provide a one line example on how to move files...
    Hope this helps.
    Best.

  • Does the advanced queue support setting the pay load type as array/table?

    Does the advanced queue support setting the pay load type as array/table?
    if yes, how to write the enqueue script, I tried to write the following the script to enqueue, but failed, pls help to review it . Thanks...
    ------Create payload type
    create or replace TYPE "SIMPLEARRAY" AS VARRAY(99) OF VARCHAR(20);
    ------Create queue table
    BEGIN DBMS_AQADM.CREATE_QUEUE_TABLE(
    Queue_table => 'LUWEIQIN.SIMPLEQUEUE',
    Queue_payload_type => 'LUWEIQIN.SIMPLEARRAY',
    storage_clause => 'PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 TABLESPACE USERS',
    Sort_list => 'ENQ_TIME',
    Compatible => '8.1.3');
    END;
    ------Create queue
    BEGIN DBMS_AQADM.CREATE_QUEUE(
    Queue_name => 'LUWEIQIN.SIMPLEQUEUE',
    Queue_table => 'LUWEIQIN.SIMPLEQUEUE',
    Queue_type => 0,
    Max_retries => 5,
    Retry_delay => 0,
    dependency_tracking => FALSE);
    END;
    -------Start queue
    BEGIN
    dbms_aqadm.start_queue(queue_name => 'LUWEIQIN.SIMPLEQUEUE', dequeue => TRUE, enqueue => TRUE);
    END;
    -------Enqueue
    DECLARE
    v_enqueueoptions dbms_aq.enqueue_options_t;
    v_messageproperties dbms_aq.message_properties_t;
    p_queue_name VARCHAR2(40);
    Priority INTEGER;
    Delay INTEGER;
    Expiration INTEGER;
    Correlation VARCHAR2(100);
    Recipientlist dbms_aq.aq$_recipient_list_t;
    Exceptionqueue VARCHAR2(100);
    p_queue_name VARCHAR2(40);
    p_msg VARCHAR2(40);
    p_payload LUWEIQIN.SIMPLEARRAY;
    BEGIN
    p_payload(1) := 'aa';
    p_payload(2) := 'bb';
    SYS.DBMS_AQ.ENQUEUE(queue_name => 'LUWEIQIN.SIMPLEQUEUE',enqueue_options => v_enqueueoptions, message_properties => v_messageproperties, msgid => p_msg, payload => p_payload);
    END;
    ------Get error
    Error starting at line 1 in command:
    DECLARE
    v_enqueueoptions dbms_aq.enqueue_options_t;
    v_messageproperties dbms_aq.message_properties_t;
    p_queue_name VARCHAR2(40);
    Priority INTEGER;
    Delay INTEGER;
    Expiration INTEGER;
    Correlation VARCHAR2(100);
    Recipientlist dbms_aq.aq$_recipient_list_t;
    Exceptionqueue VARCHAR2(100);
    p_queue_name VARCHAR2(40);
    p_msg VARCHAR2(40);
    p_payload LUWEIQIN.SIMPLEARRAY;
    BEGIN
    p_payload(1) := 'aa';
    p_payload(2) := 'bb';
    SYS.DBMS_AQ.ENQUEUE(queue_name => 'LUWEIQIN.SIMPLEQUEUE',enqueue_options => v_enqueueoptions, message_properties => v_messageproperties, msgid => p_msg, payload => p_payload);
    END;
    Error report:
    ORA-06550: line 17, column 3:
    PLS-00306: wrong number or types of arguments in call to 'ENQUEUE'
    ORA-06550: line 17, column 3:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause: Usually a PL/SQL compilation error.
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    but when I use the following script to enqueue get error. Pls help to review. Thanks...
    DECLARE
    v_enqueueoptions dbms_aq.enqueue_options_t;
    v_messageproperties dbms_aq.message_properties_t;
    p_queue_name VARCHAR2(40);
    Priority INTEGER;
    Delay INTEGER;
    Expiration INTEGER;
    Correlation VARCHAR2(100);
    Recipientlist dbms_aq.aq$_recipient_list_t;
    Exceptionqueue VARCHAR2(100);
    p_queue_name VARCHAR2(40);
    p_msg VARCHAR2(40);
    p_payload LUWEIQIN.SIMPLEARRAY;
    BEGIN
    p_payload(1) := 'aa';
    p_payload(2) := 'bb';
    SYS.DBMS_AQ.ENQUEUE(queue_name => 'LUWEIQIN.SIMPLEQUEUE',enqueue_options => v_enqueueoptions, message_properties => v_messageproperties, msgid => p_msg, payload => p_payload);
    END;
    ------Get error
    Error starting at line 1 in command:
    DECLARE
    v_enqueueoptions dbms_aq.enqueue_options_t;
    v_messageproperties dbms_aq.message_properties_t;
    p_queue_name VARCHAR2(40);
    Priority INTEGER;
    Delay INTEGER;
    Expiration INTEGER;
    Correlation VARCHAR2(100);
    Recipientlist dbms_aq.aq$_recipient_list_t;
    Exceptionqueue VARCHAR2(100);
    p_queue_name VARCHAR2(40);
    p_msg VARCHAR2(40);
    p_payload LUWEIQIN.SIMPLEARRAY;
    BEGIN
    p_payload(1) := 'aa';
    p_payload(2) := 'bb';
    SYS.DBMS_AQ.ENQUEUE(queue_name => 'LUWEIQIN.SIMPLEQUEUE',enqueue_options => v_enqueueoptions, message_properties => v_messageproperties, msgid => p_msg, payload => p_payload);
    END;
    Error report:
    ORA-06550: line 17, column 3:
    PLS-00306: wrong number or types of arguments in call to 'ENQUEUE'
    ORA-06550: line 17, column 3:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause: Usually a PL/SQL compilation error.
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Lightroom 2.1 and the CS3 Scripting Support 10.0.1 update

    In my continuing efforts to get a simulation of a working system I updated to LR 2.1 and carried out various suggested methods of updating Photoshop CS3 to properly reflect the effects of the 10.0.1 upgrade.
    In case it helps development the situation now on my Win XP SP3 is that:
    If I open LR before PS CS3, then CS3 reports Sripting Support version 10.0 and the LR "Open in CS3" does not work properly in the way reported before by many people.
    If I Open PS CS3 and then open LR, then CS3 reports Scripting Support Verson 10.0.1 and LR "Open in CS3" does work correctly.

    In my continuing efforts to get a simulation of a working system I updated to LR 2.1 and carried out various suggested methods of updating Photoshop CS3 to properly reflect the effects of the 10.0.1 upgrade.
    In case it helps development the situation now on my Win XP SP3 is that:
    If I open LR before PS CS3, then CS3 reports Sripting Support version 10.0 and the LR "Open in CS3" does not work properly in the way reported before by many people.
    If I Open PS CS3 and then open LR, then CS3 reports Scripting Support Verson 10.0.1 and LR "Open in CS3" does work correctly.

  • Does ATS load testing support Java RMI and  T3 protocol?

    Hi Experts,
    Does ATS load testing support Java RMI and T3 protocol or EJB(J2EE)?
    Thanks!

    Joseph,
    Oracle Application Testing Suite is mainly used for testing of applications from a end user perspective and offers an intuitive capture/replay for web, Siebel, EBS, JDE, Fusion apps or SOA based application through WebServices WSDL imports.
    The scripting environment (Oracle OpenScript) does not support script creation by recording JAVA RBI or T3 protocol as we lack a recorder for it, but the scrips are created as pure JAVA code so you could use the JAVA language to write a small RMI cor T3 client for your testing.
    We have customers that have used Application Testing Suite to test non-UI based testing, like: JMS, FTP, Tuxedo and others, but it require a bit of coding.
    Please let me know if you would like to know more or discuss your options
    regards
    Mikael Fries
    Principal Product Manager / Oracle

  • Does SAP Netweaver Mobile support integration with devices like Intermec?

    Hi All,
    We have a scenario where the customer is currently using SAP Console based approach for RF transaction related requirement. The device used is Intermec CK31 for barcode scanning and updating the data in the SAP backend. Some example scenarios are Goods Issue & Scrap. Since the SAP Console based approach does not support Offline mode, the customer is interested in evaluating the option of using SAP Netweaver Mobile for the solution.
    Related to this requirement, we have the following queries.
    1)  Does SAP Netweaver Mobile support Intermec CK31 device without a product like Mobile Factory. What are the pros and cons in this approach of using SAP Netweaver Mobile only? If yes, are there any documentation how this can be accomplished?
    2) Are there simulators for Intermec scanning devices like Intermec CK31 to be used while application development?
    3)  Can Mobile Factory be used for implementing this requirement? Can it support offline scenarios without SAP Netweaver Mobile? Does Mobile Factory provide Simulators for the devices such as Intermec CK31 for application development?
    An early response would be greatly appreciated as we are in the process of evaluating a right approach for the customeru2019s requirement and the same needs to be provided soon.
    Thanks in advance.
    Suresh

    Hi,
    Refer to note 1057759 for the delivered Drivers for Peripherals  and devices supported in SAP DOE. This lists all the supported barcode scanners for SAP Netweaver Mobile. Those derivers are certified after testing to work only with that device and OS configuration.
    Regards,
    Suma

  • Premiere Pro CS5 Scripting Support?

    Does Premiere Pro CS5 support scripting through extendscript or any other scripting language?  I see it as a target application in the extendscript toolkit, but i don't see a place within Premiere Pro to run scripts.
    Thanks,
    Devin

    You can scripting in Premiere with extended script, but it looks that it is not officialy supported. No manual or using example etc I hope that it will be soon.

  • Does InDesign CC XML support Footnotes/Endnotes and Index Markers?

    Hi,
    Does InDesign CC XML support Footnotes/Endnotes and Index Markers already?
    Can anyone give me the list of limitations in XML to InDesign.
    Thanks in advance.

    Hello MW,
    First of all thanks for your reply. Yes I can create an XSLT to change the XML stream ready for import into InDesign template that we have. I have also downloaded the Refoot.js and UnFoot.js. For the footnotes I have already workaround for that, but how about the index-markers and cross-references do you have any idea on how to deal with it?
    Actually I have already XSLT script that will convert XML to InDesign Tagged Text. But our client want us to use the XML embedded in InDesign so they can just export the InDesign back to XML easily. I know that there are limitations in XML to InDesign, but we need to proved to them that using XML is not good to use in this workflow because of those limitations. So I'm looking for the list so I can send to them to tell them that what they want is not doable since there are a lot of things that XML in InDesign can't do.
    We have existing XML to InDesign round tripping workflow; 1) first we have the XSLT that will convert XML to InDesign Tagged text including footnotes, endnotes cros-refeneces and index-markers; 2) once the layout is final will export the InDesign document to HTML; 3) use XSLT script to convert exported HTML to XML. But it seems this workflow is not efficient to them. Can anyone suggest what other workflow for round tripping XML to InDesign.
    Again thank you very much for your quick reply.
    Regards,
    Elmer

  • Short Circuit AND question (code included)

    I have a quick question about the short circuit AND operator...
    public class prac1 {
         public static final int aNumber = 19;
         public int age = 53;
         public static void main(String args[]) {
              if ((aNumber == 18) && (aNumber != 10)) {
                   System.out.println("You got it!");
    }You see I learned that Short Circuit AND means the first expression is evaluated and if it's false the 'code' is executed...
    So here is what I am understanding: if((aNumber == 18) already evaluates to false, right, but then I see it as && sees that it's false, but then shouldn't the code execute?
    Most likely the case: if((aNumber == 18) already evaluates to false, and because && only evaluates false expressions, and therefore since it's false the code doesn't execute... Am I correct?
    Just trying to get the && and || down... Thanks!
    Edited by: JavaPWNZ on Jul 2, 2008 5:58 AM

    sc3sc3 wrote:
    PhHein wrote:
    Hi,
    a bit confusing, but sort of yes. The && evaluates the first part ((aNumber == 18)) if that is false the following condition is not evaluated any more bacause the whole statement is false.
    Try this: String s = null;
    if(s != null && s.length() > 0){
    System.out.println("Here");
    }now try:
    String s = null;
    if(s != null & s.length() > 0){
    System.out.println("Here");
    nullpointer :-)As intended :)

  • Does Siebel Management Server supports multiple gtwy servers/siebelservers?

    Hello,
    Does Siebel Management Server supports multiple gtwy servers and siebel servers when running getservers.pl ?
    Does Siebel Management Agent service run under windows 2008 OS?
    Cheers
    Kota

    Hi,
    In addition to making sure Agent Proxy on all AD FS servers is enabled, please also verify that the IIS 6 Management Compatibility and
    IIS 6 Metabase Compatibility role services are installed. (Some AD FS 2.0 scripts depend on Internet Information Services (IIS) Windows Management Instrumentation (WMI) objects being installed.)
    Here are two links for your reference:
    Discovery Does Not Work in ADFS 2012 R2 MP
    http://blogs.technet.com/b/omx/archive/2014/05/07/discovery-does-not-work-in-adfs-2012-r2-mp.aspx
    http://scug.be/christopher/2012/03/07/opsmgr-scom-adfs-2-0-mp-discovery-issue/
    Regards,
    Yan Li
    Regards, Yan Li

  • IMac to tv with hdmi short circuit

    I have my iMac (Intel) connected to my Sony tv with an hdmi adapter.  It works fine except that sometimes the iMac seems to short circuit and turn off.  I read once that my cable may not be appropriate but then I lost that info.  Can anyone help?

    For the "Arangements" option to appear, the external display must be turned on with the correct input selected and connected to the computer.  Then close system prefs, reopen, go to "Display" and "Arrangement" will be along the top. 

Maybe you are looking for

  • Webdynpro iView link to role specific iView  Navigation

    Hi Friends, I have links in my WebDynpro iView. When I click on Link, I get popupwindow. in one role, user will be able to see the popup in editable form in another role, user will see the popup as displaying information only. This iView  needs to be

  • Arithmetic in APEX

    Hello all, Multiplication function but sort of on the same lines as getting one value from and item and a second value from another item to populate a third automatically. We have a form where we want the user to put in an estimated cost of an item(P

  • BPM ws ECC workflow

    HI All, I ahve to develop a scenario for Customer Creation where  a form needs to route multiple people for various approvals. can I develop these workflows with BPM or I ahve to sue ECC workflows? I am confused here, what is BPM and ECC workflow? ca

  • Adobe Media DownLoader (Ben. Incomplete download)

    Adobe Media DownLoader will only download 52 of my photo's while I can see over 2000 in my library. I would like to archive my library before the June deadline.

  • [SOLVED] Middle-button scrolling – multiple directions

    Firefox has a nice feature: Edit -> Preferences -> Advanced -> General -> Use autoscrolling. With the middle mouse button hold down, it is possible to scroll oversize contents of a window in any direction. I would like to have the same functionality