IIF ssems to assess allways the two parameters, the true AND the false cases

Hello

try the new command of the IIR, I'm a little surprised. Run the following code:

Dim a, b

a = 1
b = 3
logfilewrite (IIF (a > 0, b/a, a/b))

a = 0
b = 3
logfilewrite (IIF (a > 0, b/a, a/b))

And you will get a division by 0 error in the second case.  But that's exactly what I want to prevent with this IIF statement.  This example isn't very useful, but there are many cases where this behavior leads only. As in the 'useful' following line of code:

logfilewrite (IIF (RootPropExist ("MyProp"), RootPropValGet ("MyProp"), "DefaultValue"))

Someone at - it workaround keeping cela an inline statement?

Best regards

Martin Liese

Hello Martin!

IIR is like no other VBS function call. All parameters are evaluated until the function is called. In general, it's OK in the case of the IIR, it is sometimes annoying. The solution is to build your own equivalent function of the IIR:

TrueExpr)
<>Then
IIFX = Eval (TrueExpr)
On the other
IIFX = Eval (FalseExpr)
End If
End Function

The downside is you have put it the false and true expression in a string. Hard to read and sometimes a little difficult to write. Your example should bechanged to:

logfilewrite (IIFX (RootPropExist ("MyProp"), "RootPropValGet (""MyProp" ")", "" "DefaultValue" ""))

Matthias

Tags: NI Software

Similar Questions

  • HIS 520W does not meet two parameters

    Hello

    I have a Cisco SA 520W, which does not seem to respond to the two parameters of the configuration.  I have enabled/disabled/re-enabled several times and still no change in behavior.

    The first is PING on the WAN interface.  I want to enable it, but the check box is cleared and the box does not respond to pings WAN.

    The second is periodic audits of the firmware.  I put my user name and password in the configuration and left the box empty but the router on a regular basis (once per hour perhaps) check cisco.com for updated firmware update.

    I am running the latest firmware of 1.1.21

    Brian

    We have seen some strange behaviors on ping of the WAN interface.  We are aware of it and looking to solve it.

    I'm not aware of the issue with the firmware for update checking.  I'll pass this along to the team.

  • with two parameters of submit button

    Hello

    You are able to send two parameters in a submitForm by javascript? I would like to send the pdf itself over its xml to a servlet.

    Thank you

    See this class getDocuments method. You can get all attachments using Java code.

    http://help.Adobe.com/en_US/LiveCycle/9.0/programLC/Javadoc/com/Adobe/LiveCycle/formsservi ce/client/FormsServiceClient.html

    Thank you

    Srini

  • Passing two parameters to work

    Hello

    How to pass multiple parameters to a function? In the example below, the user selects a radio button, fills a TextInput, and clicks a button to submit the two parameters to a function. How to say function that the event contains two parameters, is to say the value of the option button and that of the TextInput?

    < mx:RadioButton id = "png" label = "png" / >
    < mx:RadioButton id = "png8" label = "png8" / >
    < mx:HBox >
    < mx:Text >
    < mx:text > enter the size of the image < / mx:text >
    < / mx:Text >
    < mx:TextInput width = "30" id = 'size' text = "1024" > < / mx:TextInput >
    < / mx:HBox >

    < mx:Button label = "Snapshot" click = "clickHandler (event)" / > "

    Thank you

    Manolo

    Hello

    So if I understand you, you have a function to do something when the button is clicked.  You will need to acquire the values on the radio and textinput, so the button click handler would look like;

    private void clickHandler(event:MouseEvent):void {}

    Then you would have to acquire the values of two controls

    var radio: RadioButton;

    decide option button is selected and then store a reference to it in the variable radio (cos I don't ' know what data you want her)

    If {(png.selected)

    Radio = png;

    } else {}

    Radio = png8;

    }

    Then pass two parameters to a function have you that accepts two parameters.

    myFunc (textField.text, radio);

    }

    Your function to accept these should look like

    function (text: String, radioSelected:RadioButton): void {}

    }

    There's a few ways to do that is one.  This help, or the I understood you?

    Andrew

  • Problem AJAX (problems of passing two parameters to an application process)

    Hello

    I need to pass two parameters to a procedure of application via an AJAX request.

    All are my events show below, as you can see that the second p_arg_values does not contain any value. Its as if this get.add('TEMPORARY_ITEM_2',pThis2.value); line is ignored. What changes can I make to do this work?


    P2_QUERY_GROUP (the HTML Form element attributes)
    OnChange = "get_query_select_list_xml (This, 'P2_QUERY', 'P2_PRODUCT_GROUP')" "
    function get_query_select_list_xml(pThis,pSelect,pThis2){ 
        var l_Return = null;
        var l_Select = html_GetElement(pSelect);
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
                  'APPLICATION_PROCESS=Query_Select_XML',0);
        get.add('TEMPORARY_ITEM',pThis.value);
        get.add('TEMPORARY_ITEM_2',pThis2.value);
        gReturn = get.get('XML');
        if(gReturn && l_Select){
            var l_Count = gReturn.getElementsByTagName("option").length;
            l_Select.length = 0;
            for(var i=0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    }
    }
    get = null;
    }

    Query_Select_XML (Application Process)
    declare
    l_counter number;
    l_o_name varchar2(2000);
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    for rec in (select QUERY, ID
    from     TECH_DB_VIDEO_QUERY
    WHERE instr(QUERY_GROUPS,addzero(:TEMPORARY_ITEM))>0
    AND instr(PRODUCT_GROUPS,addzero(:TEMPORARY_ITEM_2))>0
    ORDER BY QUERY)
    loop
    htp.prn('<option value="' || rec.id || '">' || rec.query || '</option>');
    end loop;
    htp.prn('</select>');
    end;


    FIREBUG Output

    Post
    p_arg_names     TEMPORARY_ITEM
    p_arg_names     TEMPORARY_ITEM_2
    p_arg_values     16
    p_arg_values     
    p_flow_id     107
    p_flow_step_id     0
    p_instance     3349916470781784
    p_request     APPLICATION_PROCESS=Query_Select_XML

    Response
    <select></select>

    Regards
    Adam

    Adam:

    The second 'get.add' should be

    get.add('TEMPORARY_ITEM_2', $x(pThis2).value);
    

    CITY

  • my computer has two network icons, 1394 and con LAN. Either, especially the icon of LAN began to move to items being passed in the system tray when I start the computer.

    I have a new and strange behavior on my computer. Until recently, the two icons, 1394 connection and LAN icons always used to appear in the whole system tray after the computer has been started. Is no longer the case. Whenever I start the computer, I don't see the icon of LAN but discover that it attributed to items passed. Then I open the properties of the network connection, uncheck 'Show the icon in the system tray', click Apply + OK, then I open the properties, check the box again, click Apply + OK; only the LAN icon is displayed in the system tray. I'd appreciate any help with this problem. The situation is sometimes the reverse case, i.e., LAN icon appears in the system tray, but I find the icon to connect 1394 points ago. I put the properties in the Start Menu, the toolbar always showed.

    Hi ErhanKarabekir,

    1. Did you the latest changes on the computer?
    2. You have security software installed on the computer?

    Method 1

    Refer to the article below and try the steps mentioned, check if it helps.

    How to troubleshoot missing network connections icons in Windows Server 2003 and Windows XP

    http://support.Microsoft.com/kb/825826

    Method 2

    If the previous step fails to them it is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • I have a dell computer, it has axtra D drive for drive & utilities I have mistakanly loaded two times I remove and reinstall please help / ps its low memory, see the

    I have a dell computer, it has axtra D drive for drive & utilities I have mistakanly loaded two times I remove and reinstall please help / ps its low memory, see the

    Hello


    (1) what exactly are you trying to delete?
    (2) what exactly you are trying to re - install?
    (3) exactly where do you get this memory low message?
     
    The reader might be for backup and could have copied data on the same, thanks to which it shows a low space.

    You can contact Dell technical support for assistance by following this link:
    http://support.Dell.com/
    Hope this information is useful.
  • Error 401 during the passage of the assessment of the production environment

    Hello

    We recently moved our application for assessment of the production environment by using the credentials provided by the Push of BB Services, only to find out that we receive an "HTTP 401 - PushServiceId/password status invalid in the authorization HTTP header" whenever we try to send a push notification.

    We do not have change our code (which works very well using assessment data) at all except for his replacement by credentials. We use the URL https://cpxxx.pushapi.na.blackberry.com/mss/PD_pushRequest to send our push notifications, where xxx is the CPID provided by BlackBerry, and we're certainly using the password for the initiator to push (instead of the password for the portal content provider).

    Needless to say that we are base64 encoding app id and the password in the header, and as I said if switch back us to the environment assessment (change credentials), everything works fine.

    This becomes a problem, I would appreciate help if someone was faced with a similar problem.

    That's all. He works with the new credentials.

    Thank you.

  • Install the two JDeveloper 11 g and 12 c on the same computer?

    Is it possible to install two JDeveloper 11 g and 12 c on the same computer? If possible, it's the additional configurations at installation time?

    Hello

    It is possible to install g 11-12 c the same machine.

    When the function installation select a different directory for each of them. No additional things required apart from that...

    See: https://blogs.oracle.com/mobile/entry/how_do_i_install_2

    Concerning

    Vincent

  • My computer crashed and I reinstall first elements 7, but it will not recognize my serial number there are two on the CD case please help

    My computer crashed and I reinstall first elements 7, but it will not recognize my serial number there are two on the CD case please help

    When you ask a question you will need to provide some basic information

    Mac or Windows and EXACTLY what version of the operating system?

    Recent Mac AND Windows operating systems have been known to cause problems "weird."

    Lost information - response #1 in https://forums.adobe.com/thread/2008767

    Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

    -http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html

    - and http://forums.adobe.com/thread/1038761

  • I want to open two different pdf documents and view them at the same time so I can read about everything by watching the other document.  I use Acrobat DC and whenever I open a document it creates a tab and I can only examine a document at a time.

    I want to open two different pdf documents and view them at the same time so I can read a whole watching the other document.  I use Acrobat DC and whenever I open a document, it creates a tab and I can only examine a document at a time. Is it possible to display two or more documents without having to toggle tabs?

    Don't think that will work, but you can drag the tab to a new window. Each window can have a set of tabs.

  • After the installation of Photoshop its showing that no internet cnnection or time is incorect but two things are true can u please tell me what to do?

    After the installation of Photoshop its showing that no internet cnnection or time is incorect but two things are true can u please tell me what to do?

    Hello

    Please see solve common problems of activation and deactivation of creative cloud.

    Hope that helps!

    Kind regards

    Sheena

  • Whenever I hit the installer and run it, it comes up with a window with two buttons, an asset and a button at home. A small circle rotates around on the screen. Nothing ever happens in addition. I tried it several times redownloading. What sh

    Whenever I hit the installer and run it, it comes up with a window with two buttons, an asset and a button at home. A small circle rotates around on the screen. Nothing ever happens in addition. I tried to re - download several times. What should I do? Here is a picture of what happens:CCFail.PNG

    See if the following can help:

    White screen

    https://forums.Adobe.com/thread/1249756

  • An expression of EI is always assessed once the project is implemented in a .mov format?

    Hi all

    I am very new to AE and I m checking to see if it is possible to have an expression of AE assessed once the project is implemented in a .mov format?

    For example, I want the motion to be built to display the name of a computer of the person who plays the motion.

    Thanks for your help

    The video is video and video is not interactive. You can have interactive video players, but this isn't happening with AE. Think HTML5, javascript, or flash. You will need a custom video player and the external code.

  • I use two monitors when editing and that you want to disable the Preview on the right.

    I use two monitors when editing and in the past, I could edit in Lightroom on the left monitor and do other things on the right (ie. by email, netflix etc...) He wants to now that Lightroom allows you to show me a preview of some photo I'm working on my right monitor.  I can't replace it and turn off Preview.  Is it something within the program or I have to change something in my control panel? Help!

    ~ Anna

    Clicking here does not work?

Maybe you are looking for

  • Stack Bluetooth for Windows XP 64-bit edition?

    Hello I recently bought a LevelOne Bluetooth USB, which contained the Toshiba Bluetooth Stack on its driver CD. Unfortunately I can not use this battery on my 64-bit edition of Windows XP, as Setup installs only the monitor, but not the necessary dri

  • How to stop unwanted emails from unknown site

    I NEED HELP TO STOP THE UNWANTED E-MAIL FROM UNKNOWN SITE WHICH I DO NOT OPEN ONE OF THEM COULD YOU PLEASE INDICATE ME PLEASE THANK YOU Moved from feedback Unspecified messaging program/service

  • Download windows 7 and install it using the genuine product key.

    Original title: I do not have the disc of windows 7 but I don't have the key. I would ask that my system crashed sometimes back. Windows 7 Home Edition premium has been installed in it. I do not have the disc to install windows 7, but I have the orig

  • SR520 VPN

    I have a router 2901 ISR in the main site. I want to build a site to site vpn using a SR520W-FE-K9 to the branch. I want to know if the 2901 vpn site to site SR520w is possible. Thank you.

  • Activation key does not work on the re-installation on the same machine

    Error - "the product key you entered cannot be used to activate windows on.This computer '.