Can I put more than one statement into a Condition in TestStand

I'm trying to learn to use the Conditional statement in more than it's simplest form and I have 2 questions:
Question 1:
For instance simple statement is:
Locals.nValue=(Locals.Compare>5) ? 1 : 2
However, I want to do 2 things in the Condition
Locals.nValue=(Locals.Compare>5) ? 1,Locals.sString = "Yes" : 2, Locals.sString = "No"
But, this doesn't work (using the comma separator). Is there a way to put 2 statements into the conditional case?
Question 2:
For a series:
Locals.nValue=(Locals.Compare>5) ? 1 : Locals.nValue
Locals.nValue=(Locals.Compare<=5)? 2 : Locals.nValue
Also, is there a way to do NOTHING in the Else? (The folowing was suggested in the TestStand class that I took but
it doesn't work:
Locals.nValue=(Locals.Compare>5 ? 1 : NOTHING
This makes "Locals.nValue" = Nothing and I find that I can't leave the "False" condition blank.
Mike

Mike -
1) You wanted to do something like this:
Locals.nValue=(Locals.Compare>5) ? 1,Locals.sString = "Yes" : 2, Locals.sString = "No"
You can do this like this:
Locals.nValue=(Locals.Compare>5) ? (Locals.sString = "Yes", 1) : (Locals.sString = "No", 2)
By using the parethesis, the parser assumes that last element in the list is the final value to be "returned".
2) There is no way to do nothing in a conditional assignment. You wanted to do this:
Locals.nValue=(Locals.Compare>5 ? 1 : NOTHING
You have to assign the orginal value back to the target, like this:
Locals.nValue=(Locals.Compare>5) ? 1 : Locals.nValue
Scott Richardson (NI)
Scott Richardson
National Instruments

Similar Messages

  • Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    You can seach the net for solutions like this one http://appletvvpn.com/how-to-connect-apple-tv-2-to-vpn/ another idea is to use a PC as the control and fit that with a wireless card and set up a ad hoc wireless network that the Apple TV uses. 

  • How can I put more than One ComboBox in the Driving Frame of a Frame Driver

    Hi,
    I am working with a Frame Driver and I want that in the Driving Frame put more than one ComboBox to filter the report, for example, I want to put one combobox for City, another for Year, and another for Month, and when the user select the City, Year and Month and do click in Submit button, then in the Target Frame appears the information for those filters.
    Does anybody know how to do that?
    Thanks a lot.
    Bye,

    Hi,
    It is not possible to have more than one combo in the source frame. This is because frame drivers can take only
    two columns in the sql query, one is the display value and the other the return value.
    Thanks,
    Sharmila

  • How can i put more than one item in a same row of a form?

    guys!
    it seems item is positioned in a single row one by one each time item is appened to a form. i can't append more than one item in same row.
    i'm using sun wtk and default colored phone emulator.
    xxxx

    Hi,
    It is not possible to have more than one combo in the source frame. This is because frame drivers can take only
    two columns in the sql query, one is the display value and the other the return value.
    Thanks,
    Sharmila

  • Can you put more than one ipod on a mac?

    I'm new to using macs i just got one like a week ago and i have more than one ipod. Am i able to put multiple ipods on my mac and if so how can i do it?
    MacBook Pro   Mac OS X (10.4.10)  

    Yes:
    http://docs.info.apple.com/article.html?artnum=300432

  • How can I put more than one alert on an event in my calendar?

    Hello everyone,
    If there is someone that can help me I will be very greatfull to him
    If there is something confused in the main title look at this picture to understand better the situation in which I am.
    http://imageshack.us/a/img713/3601/fotofn.png
    http://imageshack.us/photo/my-images/713/fotofn.png/
    Thank you to everyone.

    Thank you but I understand that form of attaching a document. However when I select a document then click 'Share' I have the option of sending the document by email as a word or pages document or pdf, what I want to know is can I use this procedure to send more than one document per email and if I can how?

  • How can I put more than one Apple ID on one device to receive iMessages?

    I have a personal iPhone and work iPad.  I'd like to receive iMessages from my work Apple ID on my personal iPhone.  Since upgrading to iOS 7, I haven't been able to do so.  Is there a fix for this?

    Although you can use more than one Apple ID on the device at a time, only one at a time can be used for EACH FEATURE like iTunes, Facetime and iMessages,

  • How can I put more than one source file when I am creating my installer from LV 7 Express

    Hi,
    I am creating my installer for my application and I would want to add more than one source file at once, how could I do it?
    Thanks,
    ToNi.

    Hi,
    I'm referring to the first executable. In other words, I have my application and I want to build and executable of it. Then I go to "Tools->Build application..." and then in the source files tab I can add my vi files but I want to add more than vi at the same time (at once) and not one by one. How can I do it?
    And my second question is: When I make the installer for my application I save the configuration in a build Script file (.bld) in order to use it whenever I want. Then If from another computer different from the one where I generate the .bld file, I load it, LV tells me that something is wrong (LV says there are some errors in some VIs but It doesn't tell me what files are). Why?
    Thanks in advance,
    ToNi.

  • Working on a logo. Converted type to outlines. Can I paste more than one item into the outlines?

    I'm working on a logo. Text converted to outlines. I pasted one element into the outlines and when I went to past a 2nd item into it, it replaced the original. How can I go about doing this?
    CS3

    >No..the objects you want to paste into it.
    AHHHHHH... cool. Thanks.

  • Can i put more than one apple tv in my house?

    I have 4 different tvs in my house, can i put an apple tv on each of these tvs?

    Absolutely.
    There's a limit of 5 AppleTvs per itunes library I believe.
    AC

  • How can I insert more than one table into database simultaneously???

    I have a problem like that:
    I want to update(insert or update) into two tables in DB simultaneously when I click a certain button. Can you help me to solve this.
    Thanks.

    I have tried using a view but I get the Validation Error on a sequence generated attribute (HOTELID) as shown below:
    Validation Error
    You must correct the following error(s) before proceeding:
    JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO HOTEL_LOGIN_VIEW(HOTELID,HOTELNAME,COUNTRY,LOCALCURRENCY,LOGINNAME,USERPASSWORD,USERROLE) VALUES (:1,:2,:3,:4,:5,:6,:7) RETURNING HOTELID INTO :8; END;".
    ORA-01779: cannot modify a column which maps to a non key-preserved table ORA-06512: at line 1
    I have not been able to resolve it and would appreciate your help.

  • How Can I Update More Than One Ipod on the Same Computer?

    I've had my 30G Ipod since April 2006. For Christmas 2006, I bought my sister a 2G Ipod. I cannot figure out how to put songs on her Ipod as we both share the same computer and Itunes Library. I've already asked Ipod Corporate for help via their FAQ section regarding more than one Ipod operating with the same computer, but their advice (which told me to create a playlist small enough for her Ipod and checked as a shared playlist) did not work for me. I'd really appreciate any help with my problem. Owning an Ipod but being unable to listen to it, as I'm sure many people would agree, is quite annoying.

    There are basically two ways of using multiple iPods on a computer and these involve:
    a) Sharing a single iTunes library and user account.
    b) Creating multiple user accounts and having separate libraries.
    Sharing a Library
    If you want to share the one library, you can set either or all of the iPods so that they only get updated with only certain playlists (you can update from more than one if you wish):
    Loading songs onto iPod automatically - Windows
    Choosing the update option "Sync Music - Selected playlists" allows you to create a playlist specifically for the iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used some other time if you choose. You can read more about playlists at these links:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes
    However since you seem to have a problem with that method you can choose to update any or all of the iPods manually and just drag whatever content you want to them: Managing content manually on iPod
    Separate User Accounts
    Another option is to create a separate User account for each person on your PC or Mac. Different accounts by definition would give you completely separate libraries. Each account has it's own iTunes folder, Library and iTunes Music folder and you load it with CDs etc just as you did with your original one. The iPod can be set to update however the owner chooses, sync all, manual or sync specific playlists
    If you are unfamiliar with setting up Windows user accounts you can read more here: Using Windows XP User Accounts

  • HT1657 Can you rent more than one movie at the same time?

    Can you rent more than one movie at the same time on itunes?

    I think Justin is correct and you should have statistics in place and a reasonable partition scheme so that the optimizer selects the correct partitions rather than telling it what to do. You paid a lot for partitioning after all.
    There are some, possibly misguided, examples in the manuals showing how to create a view so you can delete from a single partition without specifying the partition criteria in the delete statement. This in effect turns partitioning back into DIY partitioning i.e. separate tables, union all and pretend its a single logical table using a view. But backwards.
    So to do what you want you just assume the partitions are separate tables, and then use union all to glue the ones you want back together.
    select * from sales partition (sales_q1_2000)
    union all
    select * from sales partition (sales_q1_2001)
    union all
    select * from sales partition (sales_q1_2003)
    union all
    select * from sales partition (sales_q1_2004);It probably goes without saying that as well as making the expensive version of partitioning behave like the free alternative, there is the possibility that it will perform like it as well.

  • Can we have more than one trusted system in Oracle Identity Manager?

    Can we have more than one trusted system in Oracle Identity Manager?

    Can we pull employee from one trusted system and in the same way can we pull some contractors from other trusted system simultaniously?
    yes you can. In the schedule task you'll have to put your query in such a way that it brings both data.
    Can both trusted systems can be active at the same time pulling two types of users from two trusted systems?
    You have to run both recon in sequential manner so that it can pull correct data for OIM
    Some where i read in doc that only one target system can be designated as trusted system if it as has more than one the recons will not work properly...
    I don't think that it results into issue. But we have to see the sequence mainly. Otherwise it will results into wrong data

  • Can't print more than one job at a time.

    I am trying to print to either a HP DesignJet 1055cm plotter or a HP LaserJet 5000N. I can't send more than one file at a time. If i don't wait until the current job starts printing, the next one won't print. For example if I sent five files one right after the other, I might get 1, 4 and 5. I don't think it's a printer problem because it happens on two different printers, and it doesn't happen when I print from my PC. Any idea what could cause this?

    My work around is to put all the jobs "on hold" in the print settings or just "stop jobs" on the printer window.
    Then I click on each print job in the que and let them print one at a time. This way I can at least quit the program and move onto the next thing.

Maybe you are looking for

  • How can I route internet traffic over IPSec point to point?

    I have a remote site that connects by IPSEC with the end points on a router and ASA. The connection is working fine and the remote site can access my other networks at the main headquarters. The problem is, currently this remote site is accessing the

  • Scene "FLUTTER" in edited video...???

    I hope everyone is having a nice Xmas. I have successfully edited a couple of videos, taking clips from our previous work on DVD or VHS tape copies.  These will be kind of "demo" reels for our website.   The videos work fine while in CS5 and everythi

  • Import PO - Cenvat postings

    Hi I am mapping excise to SAP. In import PO(vendor currency is USD) I ve given 100 USD as CVD.While doing GR , the material cost is converted to Local currency and debited to stock account. But in Cenvat InpBED account is debited in lical currency bu

  • Scan and print with the c5031i

    Hi! Is it possible to scan several small notes, and make the printer print them out on two separate A4 papers? At the moment I can fit three notes on the A4 section of the printer, but if I could use the right side of the scanner too, I would save a

  • Multiple DW IDE Instances

    Not sure what topic this would fall under... We use DW to edit independant HTML files. Is it possible to launch separate instances of the DW IDE for each file? Instead of opening all files inside a single DW IDE. Thanks