Checking Multiple Similar Or's in an if statement. [AS2]

Hello, I know this is probably a very obvious question, but I'm new to flash.
Can I do something like,
if (jellyfish == 3, 74, 95, || 1006) {
//Do Stuff
Or would I have to do:
if (jellyfish == 3 || jellyfish == 74 || jellyfish == 95 || jellyfish == 1006) {
//Do Stuff
Let me know if there is something closer to the first one, or if I'm going to have to have pages within one if statement.
Thanks,
Christopher

Thank you so much!
This is exactly what I needed!
You were missing a parenthisis, but besides for that, it works beautifully and looks a lot more visually appealing!

Similar Messages

  • How do I "check" multiple songs at same time?

    I'm trying to backup my itunes library to DVD, but itunes will only burn songs from a playlist if the box is checked. I have 900+ songs that are unchecked that I need to backup. I realize I can just re-import them from the original CD, but then I will also have to rate the songs all over again.
    A. How do I check multiple songs, or...
    B. Is there another way to backup the ratings data for each song?

    Highlight all the songs that you want, you could hit command+A to select them all.
    Then right click, or control+click and choose "Check Selections"
    "D"

  • Creation of Multiple Similar Assets

    Hi experts,
    I need to ask if following is the best that can be done for splitting few assets of one class to another class or is a better solution exists for it Or is there any transaction/report that can create Multiple Similar Assets?
    Currently, we have one asset class in which assets of two categories are created. We now need to split them to individual classes. For that we researched on how to transfer one category of multiple assets within a Company Code and found that there is a possibility of tranferring multiple assets through txn ABUMN.
    The problem arises that we can only transfer asset to existing ones when the case is 'Multiple Assets Transfer', while we can create new Asset when the case is 'Single Asset Transfer'. WorkAround that we found is to first create Similar Assets in new Asset Class, record it and do it through LSMW for creation of assets in bulk.
    Hope if anyone went through such situation and like to share his experience
    Thanks for reading

    Hi
    I did not have such experience earlier but sure your workaround is perfect. Goahead.  Transaction code ABUMN is mainly for such transfers and/or asset class adjustments
    Cheers
    Srinivas

  • Creating multiple similar pages in DW

    Hi there,
    I'm trying to create multiple similar pages in DW. It's no funky stuff, just I've got a lot of videos (clean stuff) that I wish to display, one video per page and I've got like a 1000 videos or so.
    Example:
    http://goo.gl/KqdXp
    Now, creating a copy of the page, changing the name and changing the fields in the code for every single page would be an option but would take forever. I wonder if there's a function in DW to automate the process, like creating page after page with only a certain part of the code differing.
    I really need to automate this or my fingers will start bleeding.
    Kind regards
    Pongy
    Contact Details: http://goo.gl/wRVT6

    Yes, I was thinking about creating some sort of database first but as a matter of fact it might just be a better solution to create 1000 pages in this case because I would like to be able to customize each page individually when the need occurs.
    I mean creating a thousand pages is relatively easy per se, it's just that I would like this tiny piece of code to differ between them... I guess DW perhaps does not have a built in function to do this... I was looking to other solutions like Drupal or Joomla but I'm sort of accustomed to using DW for web editing needs and if possible I would like to stick to the same platform that I'm used to rather than engulfing lots of new info about CMS systems... And databases, which I haven't been working a lot with.
    Obviously, creating a 1000 pages might seem brutish at first but I've been thinking about it for a while and I think it could actually suit my needs.

  • How to check multiple special characters in instr function sql query.

    Hi,
    The following special characters are comma(,), slash(/), colan(:)
    these special characters i need to be check in instr function.
    select SUBSTR(master_title,1,INSTR(master_title,',',1,1)-1) from dual;
    Can you please write the query with right answer.
    Thanks in advance,
    Lakshman.

    Why multiple post?
    How to check multiple special characters in this query.

  • Check in Similar not populating custom metadata value set by global rule

    I have created a global rule to set the default value for custom metadata field creation date as current system date.This rule is working fine for normal check in but when i am using check in similar functionality of ucm the creation date value is getting populated from original content metadata value instead of default value set by rule.Is there any way to populate creation date as default value set by rule even in the check in similar function.
    Thanks in advance!!!
    Edited by: 906120 on Jan 5, 2012 4:42 AM

    Check-in similar does not evaluate scripts in the "use defaultvalue" field, as it has to copy metadata values. However, you can add script to the "Is derived field" as well. Just don't use dprDefaultValue but dprDerivedValue=
    This script will be evaluated before check-in operation and any value contained in the metadata field will be overwritten with value defined by script.
    Regards,
    Boris

  • I made a card using the iPhoto and when I click to buy it, it says that I did not fill all the frames with pictures, even though I did and have checked multiple times. Please help, it's for Mother's Day.

    I made a card using the iPhoto and when I click to buy it, it says that I did not fill all the frames with pictures and that I need to in order to purchase it, even though I did and have checked multiple times. Please help, it's for Mother's Day.

    Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    LN

  • Check one box to check multiple boxes

    I have created a javascript so that one checkbox will check multiple boxes.
    if 
    (this.rawValue==1){button1.rawValue
    =1};
    if  (this.rawValue==0){button1.rawValue
    =0};
    The problem is that I have about 15 of these "Check all" checkboxes to create and around 24 buttons underneath each one.
    Is there a better way to script the check all button, maybe something that will check all the boxes in a subform?

    Ok, in the test I ran, this worked. But there is a catch.
    My checkboxes are named things like AEMN, AEMP, CALF, CILCO and the such. What i would do is rename these in the Hierarchy to CB_AEMN, CB_CALF.  is there a wildcard that can be put on the cb to pick up the changes?
    xfa.resolveNode("page1.subform1.cb["
    + i + "]").rawValue =1;

  • Hiding/Showing new fields to Form on Check In Similar

    Hi,
    I am a newbie UCM developer.
    Is it possible to hide some fields and show some more fields on Check In Similar.
    The idea is to have a short Check In form with a few details and check it in without content. The next step would be the user will search based on some metadata fields and then click on Check In Similar. At this point we want some more fields added to the check in form.
    Any ideas on how to do this? For now the customer does not want to use customization. Appreciate your response.
    Thanks
    Soumya

    I am listing one approach below...
    create 2 profile Rules myRule1, myRule2
    myRule1 will have all the fields that are to be displayed when you the user does CheckIn Similar
    and rule activation condition as
    ((not myCustomVariable like "myCustomValue"))myRule2 will only have few fields.
    ((myCustomVariable   like "myCustomValue"))create a profile myProfile1 and add the above rules
    to checkin in an item for reference (few fields), append "&myCustomVariable=myCustomValue" to URL.
    +(this will trigger myRule2 and only few fields will be displayed)+

  • Acrobat DC can no longer check multiple comments

    You guys, I am feeling kind of sad because I can no longer check multiple comments at once.
    In the last version of Acrobat Pro I could select more than one comment and then check one of the selected check boxes and all selected comments would be marked checked.  This saved me time when I was working through a couple of hundred corrections in a PDF and wanted to keep track of the ones I'd done.
    I'm not sure why this feature would now be disabled in Acrobat DC but I hope Adobe bring it back soon.
    Then again maybe there is a way to do it - anybody else worked this one out?

    actually there is a way to do it. You have to select the last comment on the list and then press the shift key and check the comment. This will mark off all the comments. This works okay with a document with say 100 comments, but if your document has over 1,000 comments then this is very much hit and miss. In that case you are better off opening the same file in Adobe Reader XI providing you didn't update that.
    Abother more irritating bug is the fact that if a word is highlighted then the words are hidden until you actually select the wordAAl
    All in all, Acrobat DC isn't ready for production purposes. I wasted many hours trying to use it until I realised that I could still use Adobe Reader XI.

  • Enforce UCM to use Profile instead of Standard when Checking In Similar

    Hi all,
    I have an ongoing discusssion on club-oracle forum http://www.club-oracle.com/forums/enforce-ucm-to-use-profile-instead-of-standard-when-checking-in-similar-t2501
    and I need your input, as this is critical in my UCM implementation.
    Regards,
    v
    Edited by: George Papadopoulos on Mar 22, 2010 6:48 PM

    Phillip,
    I agree with you. However, if we take a trip in the "wayback machine" to the big forum changeover (can it really be that long ago?), I was BILL HUNT. Notice that everything is in all caps, because I'd had this one, from the earliest days of Adobe on the Internet. That was what the OS's of the day did.
    The forum changeover happened, and out of almost nowhere, the_wine_snob surfaced. Immediately, I went to change this back to BILL HUNT, or the updated, Bill Hunt. Could not do it. Both names were taken. In 2.5 days? I could not believe this. I had filled in the little info screen, prior to the changeover, with all data - same e-dress, same screen name, etc.. With the fora down for those few days, and me logging in as soon as they came up, how could others get my name? Must be a lot of BILL HUNT's in OZ, or NZ!!! Believe me, I tried. I had never posted to any Adobe forum, even back to the NTTP-only days, as other than BILL HUNT. Gone. Still, I try to sign every post with "Hunt."
    I hear you, but many seemed to get caught in the same "trickbag," as I was.
    At least with this screen name, if I hit a few keys incorrectly, or mis-remember something in a product forum, the readers can "fill in the blanks." Too much wine...
    Hunt

  • Checking Multiple condition in Mapping

    Hi ,
    I need to check multiple OR condition in Message mapping should i need to write an U.D.F.
    For example:I has a field
    MATNR where the possible values are WE,WB,AR
    I need to check the condition Using OR condition
    MATNR  
                         EQUALS   
    WE
    MATNR              EQUALS
    WB
    MATNR             EQUALS
    BB

    use boolean function OR  & equal...
    MATNR     
                      ------- equals -------
    CONST(WE)                         |
                                                OR-----------------------
    MATNR                                  |                         |
                     ------- equals ----------                          OR -----------Output?
    CONST(WB)                       MATNR                   |
                                                       ----- equals -----------
                                            CONST(BB)
    Edited by: Anand on Nov 29, 2008 3:04 PM
    Edited by: Anand on Nov 29, 2008 3:06 PM

  • Checking multiple e-mail accounts with new Mail app?

    Is it possible to check multiple e-mail accounts using the new Mail application?
    I am wondering if I could use it for both a business e-mail account and a personal e-mail account or if I would have to pick only one to use.

    Haha!
    Well, I plan on waiting until the SDK is released before buying any software.
    Since it appears that the system updates included in the App Pack will be required to use any software released thereafter I am fairly confident that at least that part of the App Pack will eventually be free.

  • Unable to email photos, receive a statement that the server does not recognize my username and or password, have checked multiple times that these are correct

    I am unable to e-mail  photos, receive a statement saying that the werever does not recognize my username and or password. I have checked multiple times and these are correct.

    The box comes up that says "server does not recognize username or password".
    That error message usually will pop up, when there is a conflict between the "From" setting for the mail account you are sending from and the selected outgoing mail server. Probably the outgoing Mail server is receiving a user name and password it does not understand. When the mail returns unsent, do you see the "Try again" panel with the option to select a different outgoing mail server?
    If you do not see this panel, change the Mail "Preferences > General" to "If Outgoing server is unavailable: Show a list of alternate servers". This way, you will know, which server Mail is trying to send from.
    Have you tried to set "From"  pop-up menu to one of your other email addresses?  If that works, change your settings in Mail to always send from this address. You can set this option in the Mail "Preferences > Composing: Send New Messages from". I have my "Send New Messages from" set to "iCloud". That is working best for me with iPhoto.

  • Mail program : checking multiple accounts?

    Other than forwarding accounts on the web server, is there a way to ask the Mail program to check multiple accounts? I thought I had it setup correctly by setting the preferences as the following (but it does not work).
    Under "accounts" I've set up all email address address domains that I want to have arrive in my inbox, and I separated each individual address with a comma, followed by a space.
    Thanks,
    Glen
    g4 titanium laptop   Mac OS X (10.4.6)  

    Couldn't really tell from your post, but, do you have
    multiple accounts setup for each of your email
    address' with specific incoming mail servers and l/p
    for all or did you setup one account in hopes all
    addresses would be synced?
    jahaun
    They all are variations of the same domain name... eg. studio@..., glen@..., other employees@...
    So they exist at the same domain web server with one I.P address.
    Thanks,
    Glen

Maybe you are looking for

  • ITunes movie transfers to Apple TV very slow

    My movie transfer speeds onmy new AppleTV are so slow they are usesless.  When it was first hooked up they were very fast compared to the previous AppleTV I had.  I hooked up the original AppleTV in a bed room.  Could having two on line have anything

  • Wlc 5508: windows 8 can't connect using wpa+wpa2

    Dear All, I need your help. My customer have Cisco WLC 5508 (cisco wlc 7.0.116.0) . We create ssid with layer 2 security wpa+wpa2. Using Windows 8, it's can't connect to the wireless lan. But if I change, the ssid, with layer 2 security wep. It can c

  • Scratch Disk Error Has Occurred on Brand New External HD

    Here are my specs: Mac OS X 10.8.2 Mountain Lion 3.2 Ghz Intel Core i3 8 Gb 1333Mhz DDR3 (was running 4 gb. an apple specialist just installed another 4 of Crucial brand. I wanted 16gb, but apparently I got a Mac in mid 2010 when it's finicky about i

  • Howto select all entries with two fields value

    Hi all, I have the following SELECT stmt:       SELECT SUM( betrw )         INTO l_real_t         FROM dfkkop        WHERE opbel = l_opbel          AND hvorg <> gc_hvorg_dun_fee          AND tvorg <> gc_tvorg_dun_fee. Now I get no lines, where hvorg

  • DPM 2012 Protection Agent Connection Failure

    I was successfully protecting a Windows Server 2008 R2 Ent. Server with my M.S. System Center 2012 R2 DPM R2 Server until today.  The only changes I know about are the fact that this 2008 server was promoted to a domain controller today using the sam