Check for two conditions

Major brain-fart here.... been doing a bunch of .net stuff
lately and am forgetting syntax...
If I want to check 2 conditions, how do I string them
together? This obviously doesn't work...
if (my_label1.text == ('Aetna Open Access 1.0')) &
(my_label2.text >= Number(1) {
my_label3.text = true;
thanks!

Except it's && for logical and - not &.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

Similar Messages

  • Checking for the condition types using case statement

    hi folks,
    I have a lot of condition types that I have to check for and I am using case statement to do that. The code goes like this.
    case wac-kschl.
            when 'ZRAT' OR 'ZAGR' OR 'ZRCR' OR
                  'Y098' OR 'Y007' OR 'ZREW' OR 'Y106'        OR 'ZTSR' OR 'Y127' OR 'Y125' OR 'Y126' OR 'Y124' OR 'Y157' OR 'Y092' OR 'Y085' OR 'Y090' OR 'ZMZD'
    OR 'Y215' OR 'Y214' OR 'Y111' OR 'ZC$D' OR 'ZAUD'.
    up till here it is working on errors and when I add few more condition types to the case statement it is throwing the error.
    I have to check for all the condition types out here.
    How can I correct it? Is there a better way to do it?
    thanks
    Santhosh

    Hi Santhosh,
    I think that your CASE statement has a flaw. The line length of one of the lines is too large. You need to insert a carriage-return to shorten it (or press the button 'Pretty Printer').
    The code would look nicer like this:[code]  CASE wac-kschl.
        WHEN 'ZRAT' OR 'ZAGR' OR 'ZRCR' OR 'Y098' OR 'Y007' OR 'ZREW'
          OR 'Y106' OR 'ZTSR' OR 'Y127' OR 'Y125' OR 'Y126' OR 'Y124'
          OR 'Y157' OR 'Y092' OR 'Y085' OR 'Y090' OR 'ZMZD' OR 'Y215'
          OR 'Y214' OR 'Y111' OR 'ZC$D' OR 'ZAUD' OR 'Z001' OR 'Z002'
          OR 'Z003' OR 'Z004' OR 'Z005' OR 'Z006' OR 'Z007' OR 'Z008'
          OR 'Z009' OR 'Z010' OR 'Z011' OR 'Z012' OR 'Z013' OR 'Z014'.
        Do your thing here
          WRITE: / 'OK'.
        WHEN OTHERS.
          WRITE: / 'NOT OK'.
      ENDCASE.[/code]If this will not work for you, you could try a different approach:[code]* Local definition
      DATA:
        var_list(1024).
    Build variable string for checking
      CONCATENATE 'ZRAT ZAGR ZRCR Y098'
                  'Y007 ZREW Y106 ZTSR'
                  'Y127 Y125 Y126 Y124'
                  'Y157 Y092 Y085 Y090'
                  'ZMZD Y215 Y214 Y111'
                  'ZC$D ZAUD'
             INTO var_list
        SEPARATED BY space.
    Check if the correct value is supplied
      IF var_list CS wac-kschl.
      Do your thing here
        WRITE: / 'OK'.
      ENDIF.[/code]Hope this helps you a bit.
    Regards,
    Rob.

  • Checking for two database columns is null

    hi all,
    i am using Forms [32 Bit] Version 6.0.8.24.1 (Production)
    i have two questions.
    i have database multi record block and fields like code,name,email,p_email,notes
    1. if the senario email and p_email both cannot be null
    so in when-validate-record i have written like
    if email is null and p_email is null then
      raise form_trigger_failure;
    end if;what i am doing is correct?
    2. if i enter code and name and close the form the form is not asking for commit simply close window is appearing with 'yes' and 'no' option. but if i enter name,code and any of field(email or p_email) then its asking for commit.
    my question is why such behaviour is this is because of w-v-r?
    but if i update(code and name)alone then the change is reflecting.
    Please clarify my doubts.
    Thanks..
    Edited by: GD on Apr 10, 2011 5:40 AM

    hi,
    i have written the below code in w-v-r trigger and its firing accordingly
    if email is null and p_email is null then
      raise form_trigger_failure;
    end if;but in the same i have written the code as below but there is no impact
    if email is not null and p_email is not null then
       set_item_property('code',update_allowed,property_false);
    else
       set_item_property('code',update_allowed,property_true);
    end if;in my second code the trigger is firing after i leave the record, which is of no use(still i can update the code column),
    but in my first code form_trigger_failure has been raise if the two colulmns are null(for the same record)
    my question is why its behaving in two different manner,according to me the first code should not raise error for the same record as its behaving in second code, otherwise the second code should also fire for the same record(but its firing once i try to move to other record).
    Please clarify where i wrong? or is this is how trigger behaves?
    Thanks..

  • Customizing the code inspector with check for two executable statements in same line

    Hi Everyone,
    I have a reuirement to customize the code inspector.I need to create a check 'Two executable statements should not be in the same line'.
    While doing so i am facing one problem as in internal table it is capturing the report as word by word with same row number nd different line number.
    If anyone have worked on this before then help me out.
    I am using CL_CI_TEST_SCAN as superclass and making the changes in the run method.
    Regards,
    Khushboo

    In the source code you will have this in comment right, use the "#EC ENHOK.

  • Additional checking for rebate condition fulfilment during settlement

    Hi Gurus,
    This is a typical requirement from my client-
    Client encourgaes sales to a particular part of the country. All our dealers belonging to any city or location are encouraged to sell to their end-customers of that part of the country. Dealers do specify the final customer location in their purchase orders, that we are capturing in the sales office field during sales order creation. Now, capturing the sales office as a criteria we are offering rebates and the system works fine.
    However, sometimes dealers falsely declare the special rebate location in their PO but off load the material somewhere else. To check this part, our client have deputed people to confirm the material physically reaches the location that specified at the sales order; and on confirmation from these people only the rebate amount is paid to the dealers. Can some one suggest the way to map this, any idea will be highly appreciated.
    Best Regards,
    Ajit

    Hi,
    I am just bouncing an idea as :
    I suggest you to put in place the functionality of Proof of Deliver . Proof of delivery (POD) is an instrument involved in business processes in which an invoice is issued only after the customer has confirmed the delivery's arrival and your rebate will be displayed as in normal process in invoice . In addition to the proof of delivery itself, you can also record the POD date, POD time, the actual quantity that arrived and the reason for possible differences in quantities.By this you will keep the track on delivery receipts.
    In possible reason you can configure the reason code as "different location" for POD.
    Then develop the requirement routine(VOFM) which will be the clone of 24. In this put an additional requirement to check pod and if reason code is different location.
    Hope this will help you.
    Regards,
    Atul

  • Sap note doubt (105621 - Authorization check for the condition )

    Hi experts,
    I am wondering if this note takes effect also in Mm transactions.
    Does anyone have experience with this?
    Thanks!!
    Artur.

    Hi Artur,
    I guess you should post in service market place instead SDN....
    Arpan

  • Constantly "Checking for Mail"

    My new iPhone is constantly "Checking for Mail" while I'm trying to delete or read messages that are already downloaded. It holds me up from deleting or doing anything until the operation is complete. I've got it set to check manually, and also tried 15, 30 and 60 minutes, but still it checks for mail everytime I open Mail. How do I get it to chill out and let me go through my mailbox and check only when I want it to?

    I've experienced this a few times. The problem was some kind of deadlock related to my Yahoo mailbox. The workaround for me was to log into my Yahoo account via the web, create a folder, move my Inbox content to that folder, delete and re-add my Yahoo account on the iPhone client, check email (nothing to download), then via the web move all my inbox messages back from the temporary folder to the inbox. On the next reload of my Yahoo email Inbox all messages were displayed and the "Checking for Mail" hang resolved. A client issue perhaps.
    I seem to recall that this Checking for Mail condition would also block the ability to download email from other non-Yahoo email accounts.
    This may or may not be the same as your issue.

  • Constantly "checking for mail" and email settings freeze

    Since yesterday I've noticed that my mail app isn't showing any new emails and when I go in to it the "checking for mail" is continously running at the bottom and the internet spinning disc is spinning away.  I've tried switching it off and back on again (using the red slide bar) and new emails appear the first time it's restarted but only that once.
    I've got three POP3, a hotmail and Gmail account set up so thought I could try and disable them one by one to see which if any was causing the problem, but in settings going to the Mail, Contacts, Calendar option just freezes the screen.
    Have tried syncing with iTunes and a full reboot (home and power button together) but still no success. Also tried the suggestion made elsewhere about clearing the cache, closing all the open apps and doing a full reboot - unfortunately still without any joy.
    Internet and everything else seems to be working fine. Any other thoughts?
    iPad2 OS 4.3.5
    Thanks

    I've experienced this a few times. The problem was some kind of deadlock related to my Yahoo mailbox. The workaround for me was to log into my Yahoo account via the web, create a folder, move my Inbox content to that folder, delete and re-add my Yahoo account on the iPhone client, check email (nothing to download), then via the web move all my inbox messages back from the temporary folder to the inbox. On the next reload of my Yahoo email Inbox all messages were displayed and the "Checking for Mail" hang resolved. A client issue perhaps.
    I seem to recall that this Checking for Mail condition would also block the ability to download email from other non-Yahoo email accounts.
    This may or may not be the same as your issue.

  • Select data by checking two conditions

    Dear every one,
    how to fetch data from database by checking two condition...
    the task , it should check whether both are present , if present "it should break out of loop",if not, then check atleast for atleast one available..
    eg:
    if i give a,b etc applies to above
    PreparedStatement pStmt = con.prepareStatement("select eid from lang where language like ?  ");
    for ( i = 0; i < s3.length; i++)
               if(i < s3.length - 1)
               a=a + s3[i] + ",";
               else
                                 a = a + s3[i]  ;
                           pStmt.setString(1, "%" + a + "%");thanks in advance

    Hi Benny,
    You can use the programme RQMELL10 or RQMELL11.
    Why do want a develop a new report. You can use qm10 or qm11. As far my understanding goes you want the cost to be included in the report. Cn you explain in details why you wan this report.
    we are also a using z- report for qm10, where we select a notification to do the modification the task.
    Regards,
    Satyajit

  • Error when a TS step has a condition to check for custom variable. Variable is set on the collection.

    SCCM Version = SCCM 2012 R2 CU3
    Background
    I would like to setup some sort of safety check to help prevent accidentally sending and OSD out to all the servers managed by SCCM. The solution I am trying to use is making the TS do a check for a custom variable. If the variable is NOT set to TRUE
    then it should reboot the machine back to the currently installed OS.
    The variable is called "AllowOSD"
    AllowOSD is set correctly on my "Test Servers" collection
    I'm using the built in "Reboot Computer" step in the TS
    The condition on the Reboot Computer step is very basic - "Task Sequence Variable AllowOSD is not equal TRUE".
    I am testing the TS on a VM guest (Hyper-V)
    I'm deploying via PXE for these tests...
    The Issue
    As soon as the TS starts I get the annoyingly generic 0x80004005 error - smsts.log posted on github -
    smsts.log-A
    Possibly related issue:
    I have a vbscript that prompts for, and sets, the computer name. This works fine if placed after the format disk step, but if I place it before the format disk step then I get error 0x800700A1. If I format the internal HD first then I don't get an error
    and it all works fine.
    smsts.log posted on github - smsts.log-B
    Be aware VM_1 and VM_2 have unformatted disks (vhdx). I don't want them to be formatted before checking that the task sequence should really be running in the first place. As already mentioned, I am trying to prevent someone wiping out a bunch of servers
    by accident.
    My Task Sequences are based on the defaults created by the wizard. Here are the step I'm using...
    * Reboot if AllowOSD is not TRUE
    Restart in Windows PE
    * set Computer Name
    Partition DIsk 0 - DIOS
    Partition Disk 0 - UEFI
    Install Operating System
    Apply Windows Settings
    Apply Network Settings
    Setup Windows and Config Manager
    * = steps I have created.
    All other steps are defaults as created by wizard.
    Please note the "Restart in Windows PE" step does a conditional check on "_SMSTSInWinPE" without any errors. it is looking like the use of custom variables is not supported until the local HD is formatted and mounted. Can
    anyone confirm this behaviour, or what I can do to get around this problem.
    I have tried using a vbscript but triggering a reboot from VB does nothing, hence using the Reboot Computer step in the TS.
    Thanks
    "Well I'm all out of ideas." - 85

    As others have stated, your options are limited the moment you rely on PXE and WinPE but I think all you need to do is refine your collection target a bit.
    Why not instead of deploying your TS to All Systems (which is what I'm guess you're doing) and trying to put a condition in, deploy to a collection that is based on a workstation collection then include unknown computers?  Then any "known workstation"
    will have a MAC stored and thus be permitted to use the TS, unknown machines will be as well ... but "known servers" will be blocked?
    COnsidering the PXE looks for permitted MAC addresses this should work (Ill try it in my own lab).
    Tested and verified:
    Simply create a collection with a parent collection of all systems.
    Add a workstation query:
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion LIKE "%Workstation%"
    Then "include" unknown computers.
    End result is any machine that has "server" in it's version that has already been deployed will not be able to use the deployment.  If you'd rather base existing computer on an OU or group membership just modify the first query how you see fit.
     This will let known workstations (or whatever) and unknown machines get deployed to ... but known machines NOT in that collection will be skipped.

  • AP - One Check for Vendor from two Company Codes

    Our Company would like to issue one check  for a vendor in two company codes.
    Configuration has the paying company code = sending company code.
    So the payment proposal will want to create two checks, one for each company code.
    Question --- Is there a way to generate one check for the one vendor in two company codes.
    Thank you,
    Jeffrey

    Dear Jeffrey,
    Let say there are two company codes 100 and 200, in the config, you will need to make paying company code for company code 100 = 100 and
    Paying company code for company code 200 = 100.
    you will need to set the Intercompany balancing account in Tcode OBYA.
    Once you do this, the other process remains the same. Should you have questions, let me know.
    Thanks
    Raghuram

  • Single Check created for two Vendor invoices via RFFOUS_C

    Hi All
    We run the program RFFOUS_C to generate check printing, our requirement is to print a single check for each invoice to a vendor. So if two invoices require payment, then two checks created.
    The system generates two Check numbers which can be seen in F110. However when reviewing the file, only one check number is printed against both invoices.
    Where else should I be looking for a setting that determines the check payments?
    Regards
    Gurprit

    Hi,
    In the vendor master, company code data, payment transaction tab, there is a setting for individual payment. If this is checked, a separate payment will be made for each invoice.
    There may be other solutions but this one is very simple.
    Hope this helps.
    Alicia

  • Visibility formula for checking on two fields for deciding on visibility of row

    I have a row that has groups in it where I need to check for Risks and Issues availability and if both are not there, make the row invisible.  If either of them or both are there, go ahead and display.  I have the following expression for one of
    them and it works for the risk group but for the life of me I cannot figure out how to check for both risk and issue fields; have tried many different possibilities but it keeps telling me the syntax is invalid.  Any ideas would certainly
    be helpful. 
    =Iif(IsNothing(Fields!Risk_Title.Value),True,False)
    Cletus51

    Your statement syntax worked...thanks!  However, due to the way I have two rows structured, for the second row, in order to not display the project name twice, I had to use your statement in the negative (inverse).  Here it is.  Again, statement
    worked. 
    =IIF (Not IsNothing(Fields!Risk_Title.Value)
    and
    Not IsNothing(Fields!Issue_Title.Value) ,True,False)
    Cletus51

  • Best SD userexit to use for checking 'material pricing conditions' (KOMV-KSCHL)?

    Hiya,
    When creating a sales document I'd like to check the material pricing conditions (KOMV-KSCHL), specifically for rate(KBETR), when a material is entered into an order.
    If the Rate value is not as expected then I'd like to raise a pop-up to inform the user.
    I was searching for a userexit to use and I can't find anything that fits my requirement...
    I was therefore thinking of using USEREXIT_PRICING_PREPARE_TKOMP or USEREXIT_PRICING_PREPARE_TKOMK.
    But I thought I'd just check with you experts first.
    Would anyone have any suggestions?
    Thanks in advance!

    Hello Robert,
    I would suggest using 'USEREXIT_PRICING_PREPARE_TKOMP' which is for Item level fields. However, why would the rate be not as expected, is there a limit that you want to set ?
    Also its worth noting that these user-exits get triggered 3-4 times every change is made. You may want to restrict that.
    Another option is to set a flag in a requirement routine for the condition type and use it to send a pop up in User-Exit.
    Rgds,
    Vijay.

  • How can I define same Price Conditions for two different Sales Deals ??

    I need to define for the same price condition, lets say ZPMP, two different values or condition records, for two different sales deals and the same valid dates
    For example, Sales deal 1, ZPMP equal to USD 15 and valid dates from 04/15/08 to 04/30/08.
    Another condition record for Sales deal 2, ZPMP equal to USD 20 and valid dates from 04/15/08 to 04/30/08
    How can I do this.
    Thanks in advance.

    While creating condition tables, you have the option to create different key combinations. So if you want the system to take different condition records for different sales deals, there has to be a point of differentiation between those 2 sales deals.
    This can be done in one of the following ways:
    by giving customer specific prices
    by giving material specific prices for a particular customer etc
    All this can be defined as different key combinations while creating the condition tables. For each key combination, you can specify different condition records, so that the system is able to pull prices according to the requirement.
    But if the sales deals are entirely similar (that is even the validity dates, delivery dates etc are also same), and there is no differentiating factor, then you will have to manually input the prices.
    Do get back if you require more clarification. Please reward points if useful.
    Regards,
    Swapna

Maybe you are looking for

  • IPS 4240 software 6.2(3)E4

    Hello! I have a sensor IPS-4240 which holds IPS software 6.2(3)E4. Right now we havn't got a license. With the device wh have almost 100% cpu usage all the time: show statistics host General Statistics    Last Change To Host Config (UTC) = 27-Dec-201

  • Driver X missing by installation module Y in location Z

    Challenge: Windows 8.1. Enterpise Evaluation installation failed Message:   "A media driver your compute needs is missing" Actions:   offered possible driver candidates from DVD/CD/USB starting with new resources                such as NVidia QTX 750

  • 1.4.5 DocView file list won't scroll

    After 1.4.5 Doc View won't scroll the file list once a file has been opened then closed. I have 20 files and when first launched, DocView will scroll the list. After a file is opened then closed the list no longer scrolls. Strange thing is my swipes

  • 4g lte router with voice works great with data....stops working on voice

    Have had the router about a month and half....works so much better than old MIFi Jet Pack although Jet Pack was good..Signal so much better with router...6-10 meg down 2.5-4 upload which is good for us out here in the country..............BUT here is

  • Problems upgrading 3g to 4.2 - Freezing (?) during backup stage

    I'm trying to update my 3G to 4.2, and while the phone continues to show "Sync in Progress" the actual progress bar in iTunes just stops scrolling and basically vanishes every time during the "Backing up iPhone" stage. I'm not sure if it's still work