Conditional Loop doesnt work correctly.

Hi There,
If you analyze my code, its all about parsing a dictionary.
Im checking the dictionary for the "aardvark" word. It gives me
false all the time. When "aardvark" is the first word in the array,
i.e my_dictionary[0] is "aardvark". I wonder why the conditional
loop isnt working fine. Im checking if the user string aardvark is
== my_dictionary
; it should be giving me the true value.
Is there any error in the code? Can anyone explain me where
im going wrong?
P.S -> The traces put everywhere gives me the right
output. Except for the result of the if().
Regards and thanks a lot in advance.
Roshan Kolar

Hi Raymond,
Thanks for the reply. I got the problem, actually the
conditional loop was perfect, the parsing was not. The reason
being, some words in the dictionary had a Space/NewLine/Carriage
Return at the last index after the word. It was all random, so some
words were taken, but some were not like "vicious" == "vicious " -
gave INVALID WORD.
So I redesigned the parser, where I removed the unwanted last
char - now the condition worked fine. Thank god I was working even
after posting the query.
Thanks a lot Raymond.
Regards,
Roshan

Similar Messages

  • Clip looping not working correctly unless I edit clip in Waveform editor (CS6)

    I record a short clip
    I use the, razor, slip or time selection to trim the clip to the exact length I want it to be.
    I rt-click the clip and enable looping
    I go to the right edge of the clip and stretch the clip to make it loop one or more times.
    Problem, the clip loops but not at the begin and end point I expected based on #2 above.
    I eventually went into the wave form editor and just deleted the dead air at the beginning of the clip (but not at the end) and now the looping feature works as expected.
    Am I missing something?  Is this the correct behavior?  Do I have to edit a clip in waveform editor to make it loop correctly?
    Thanks, I'm new to AA and just getting started with CS6 version.

    bmfm_ wrote:
    I have quite a lot XDCAM EX 50i clips which are all in one sequence that is used as source.
    Now fortunately one can choose to either have a sequence as source edited in nested or as individual tracks. Very nice!
    Very bad is that 3 point editing only works when "nested" is activated. Again, very bad!
    Hi bmfm,
    I think I know what's going on. The behavior you describe happens when you try to edit back into your original sequence. Can try making a new sequence to cut your selects into? See the page in help for details: http://helpx.adobe.com/premiere-pro/using/edit-sequences-loaded-source-monitor.html
    Thanks,
    Kevin

  • OSB - Resume in Foreach Loop doesnt work

    Hi,
    I have used for each loop in osb proxy service message flow, and in the stage error handler i am using a resume action to resume the for loop in case of error for any loop.
    But then it actually doesnt work. In case of error it continues to next stage instead of resuming the for loop.
    Can any one suggest any solution for this? I searched for fourms and was not able to get the exact solution. Was wondering what the problem is. Any suggestions on this? Appreciate your help. Thanks
    Note: I cannot use split join as i have to do sequencial invocations and in case of error from any invocation i need to log it and continue the for loop, which as per my knowledge is not possible using split join. Let me know if i am wrong. Thanks
    Edited by: 791951 on Mar 10, 2011 9:02 AM

    Thanks for replying. Nope I cannot call that proxy again from the error handler.
    Below is the Message Flow
    Proxy Service gets the Status as Input Field
    Request Pipeline:
    Then in the request pipeline proxy takes the status as input and queries DB for the messages (MessageID/Message) with that particular status.
    Once it retrieves all the messages for each record of the queried record i use a for loop and post all the messages to an Advanced Queue.
    So if there is any message which actually fails then if i call the PS again it again resubmits the messages which actually passed, which is not my requriement.
    Please suggest why resume is not working. Appreciate your help. Thanks

  • Ipod nano doesnt work correctly

    I have already boutgh the new ipod nano 7 generation, it works correctly, but when I transfer the music into it, the multitouch pad doesnt respond, and it works slower.

    Looks like the battery is broken.
    I would give it back to apple for a new one.
    If you have an apple store next to you, bring your ipod to them, because that should save you a lot of time.

  • DW pages doesnt work correctly

    All pages made with Dreamweaver CC doesnt work in my browsers. I made design as in tutorial, but I can see only texts in browser. I used Explorer, Opera, Chrome. I also started my site on server, but problem is the same. Its strange that example file doesnt work too
    .----> I see in browser
      -----> Really in DW

    Assuming you defined a local site folder in DW before you began this project, I'm guessing your style sheet is not properly linked to your HTML page or you forgot to upload it to your server.
    Dreamweaver, Linking HTML to External Style Sheets
    If you didn't define a local site folder, DW cannot manage links and assets for you.  You must define a site for all new projects by going to Site > New Site and tell DW where to keep local site files on your hard drive.  See screenshot.
    Nancy O.

  • Importing 3rd party loops doesnt work

    in logic pro x when i drag and drop loops from my loop library folders they dont import at all (worked fine in logic 8). the popup window asks where i want to use them from and no matter if i choose original location or import to new folder they dont show up in the loop browser.
    anyone know why?
    Thx
    Murray

    Maybe you need to select the user category?

  • Looping Not Working Correctly In CS4

    In Encore CS4 I have a DVD with the first menu that is set to loop forever.  After I burn the DVD, the menu loops twice then stops.  I tried again to set the loop number to 1024.  The results were the same, the menu looping twice and stopping. 
    I've tried in four different DVD players.  In addittion, in preview mode the menu seems to loop correctly.
    Does anyone have any ideas or suggestions?

    Thank you.
    The T-Y's are as good as it gets.
    Burn speed can cause playability issues, and I normally step down to about 1/2 of the max. As no set-top player is certified to play any burned DVD, I want to eliminate as many potential problems, as I can.
    Now, I do not recall hearing of any Looping Bug in CS4, but also do not have CS4. Maybe others have experience with this issue.
    Sorry that I do not know even where to look next.
    Good luck,
    Hunt

  • Loop not working correctly in smartform

    Hi Experts,
    I have developed a smart form wherein,  the import params of form is a table (multiple records).The design of the form is, the first 10 lines is populated with a static text followed by the import table and follwed by a conclusion text. in simple words the design is, in the header a static text (hard coded text) will be populated in the main body an internal table will be populated and in the footer a static text (hard coded text) will be populated.Initially I have created three seperate windows for header, main body and footer, this was working fine for few records (import table) sometimes it happened the records were very huge and table entries over lapped the footer text. How to handle this kind issue? Can we increase the page size dynamically?? and also as per the user requirement the output of the form should have a provision to download the form on thier desktop in word format. Can some one help me in building this functionality.
    Thanks and Regards,
    Srini...

    Hello Mr. Srinivas,
    There is no provision to download the form in word format, but if you want to still download the form in real means open smartforms --> Utilities(M) --> download form.
    this will download the whole program wahtever you hvae chnge made in this. Make the back copy of form and after edition in form make down load again this form and than find out the differnce. May be this will be helpful. And also if yr loop is not working with smartform. Do write the similar code in yr driver program for the loop this will definetely helpful.
    Regards,
    Akg
    Edited by: akg.amit on Mar 25, 2011 10:08 AM

  • Laptop lid closing function doesnt work correctly

    Hello,
    I use openbox and acpid is installed.
    When I close laptop screen, my laptop does not sleep nor hibernate, fans continue to work and if I put the laptop in to a laptop bag ( which I did because I thought it was working ),  the laptop becomes very hot in very short time.
    If I want to open the laptop again, screen does not open. I dont know if the system is really working or not but it doesnt open no matter what. So I'm forced to do hard reset.
    systemd-logind service logs like its working normally but it is not;
    Mar 01 20:02:11 isg00051371 systemd-logind[356]: Lid closed.
    Mar 01 20:02:11 isg00051371 systemd-logind[356]: Suspending...
    Mar 01 20:02:11 isg00051371 logger[1286]: LID closed
    -- Reboot --
    What should I do to fix this problem ?

    Both of them failed again.
    systemctl restart systemd-login made X crashed, so I started X again and used them together "sudo systemctl restart systemd-login && systemctl suspend", but same thing happened
    pm-utils made fast move and I thought it worked, but then fan started to make noise, and when I tried to open it, it failed again;
    Mar 02 00:46:34 isg00051371 sudo[601]: kerem : TTY=pts/0 ; PWD=/home/kerem ; USER=root ; COMMAND=/usr/bin/pacman -S pm-utils
    Mar 02 00:46:34 isg00051371 sudo[601]: pam_unix(sudo:session): session opened for user root by kerem(uid=0)
    Mar 02 00:46:44 isg00051371 sudo[601]: pam_unix(sudo:session): session closed for user root
    Mar 02 00:47:10 isg00051371 sudo[647]: kerem : TTY=pts/0 ; PWD=/home/kerem ; USER=root ; COMMAND=/usr/bin/pm-suspend
    Mar 02 00:47:10 isg00051371 sudo[647]: pam_unix(sudo:session): session opened for user root by kerem(uid=0)
    Mar 02 00:47:10 isg00051371 kernel: EXT4-fs (sda5): re-mounted. Opts: data=ordered,commit=0
    Mar 02 00:47:10 isg00051371 systemd-udevd[215]: error opening USB device 'descriptors' file
    Mar 02 00:47:10 isg00051371 kernel: usb 3-7: USB disconnect, device number 2
    -- Reboot --
    I find arch wiki very confusing, it's not helpful. Only helpful guide was beginner's guide, the rest is either confusing or incomplete.
    I think I'll install either Xfce or Gnome, because this is making me feel I'm going nowhere.
    Also, another thing is, I dont know if its about  disabling acpid but, now whenever I do something new, like opening a tab in firefox, clicking on search area in arch wiki, my machine acts like a new cd inserted, but instead it uses hdd, it stops for 1 second, drive starts moving, then it acts, and I'm talking about 8gb ram, i7 machine...

  • QT 7.0.4 Install Doesnt Work Correctly on MAC OS 10.3.9

    I dloaded QT 7.0.4 and installed it on a 1.25 mHz Dual Processor G4 MAC computer with 1.5 GIGS of RAM frunning MAC OS 10.3.9. I typed in the Pro Serial Number. When I click on either previously made in QT 6.5.2 movies or movies exported from SoundTrack Pro the QT 7.0.4 application DOES NOT EVEN OPEN. Either I get NOTHING or an error message that says the application has timed out. I only installed QT 7.0.4 and SoundTrack Pro for a project students are doing in the lab.
    Any Help is appreciated since it SHOULD WORK. Thank you.

    This is more of a solution for programmers than it is for users. I tried to hack an application this way and had no luck. If you really want to try, be sure to make a backup of your application first. Just copy it and paste a copy to your desktop or somewhere safe.
    For the version you are editing, right click (or hold control and click) and select "Show Package Contents". Go to Contents->MacOS and you will see the actual program or in the case of Java applications, a file called JavaApplicationStub. This is the file to overwrite.
    Keep in mind, this isn't entirely likely to work. It really depends on the application. You are better off reverting to Quicktime 7.01 using Apple's QT 7.01 reinstaller, or if you already upgraded to 7.1 use Pacifist to force the installation of both QT 7.04 and the 7.01 reinstaller. That worked for me.
    iBook G4 1GHz / 768MB   Mac OS X (10.3.9)  

  • "When I open a link in a new tab, switch.." Doesnt work correctly

    I'm using Firefox 28.0 (Waterfox build)
    I've verified that:
    - browser.tabs.loadInBackground: False
    - browser.tabs.loadDivertedInBackground: True
    - "When I open a link in a new tab, switch to it immediately" is enabled in the UI.
    It seems only some websites actually switch to the new tab. Also, sometimes, this feature will stop working all together; requiring me to toggle the Firefox UI setting and/or restart firefox.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Swf export doesnt work correct

    Hello
    I created a website and exported the project into an swf file. Unfortunately some of the pages exported are correct and others show something else but not the stuff I created in CS4. Actually it is only text so nothing difficult. The result I get is something I had before, only bolt text parts or only the grey letters and not the colered letters...
    Iam using version 10. Whats going on?
    Thx for your help!
    Matt

    Hey,
    the wreid thing is that I used on all pages the same font. Just on two pages the text is not exported correct. On the one page a part of a line is missing completely. But the rest of the text is exported correct. I also added something and it is exporting it all the time correct, but not the first line with some bolt and colered letters. On an other page there are only the headlines shown I wrote on this page maybe three days ago and I have already changed to something else. It seems to me that the software is using some information from the past???
    Mathias
    Edit:
    Right now I removed everything from my page and even then I get the stuff I already mentioned! There is nothing on the page but the software exports something from the past...

  • Focus stacking doesnt work correctly

    Hi there,
    I tried to "focus-stack" multiple photos.
    Everything is working fine, except when I blend the pictures together, only the bottom most layer will be shown. Photoshop won't select the parts of the layers which are sharp.
    In this video I posted you will see what I am doing, it is in Dutch, but it's the same as the English version.
    Can anyone help me out?
    I use Lightroom and Photoshop CC, newest updates.
    I import from my canon, and then convert the files to .DNG within Lightroom Import.
    Thx

    Thanks a lot guys! I really appreciate your help.
    It's finally working (And now I see making good pictures for focus-stacking isn't that easy).
    So this is what I did.
    I first took R_Kelly his advice. I checked the version, and it seemed that this evening a new update has come out.
    So I updated, tried the stacking again, And it was working.
    Strange thing is, that in my opinion the update can't be the thing. It should have worked in older version right?
    So I was thinking, when you update, photoshop will be resetted right? At least, the reset that Benjamin meant.
    The final conclusion:
    Resetting helped (with help of the update)
    Thx!

  • Firefox udated, and now facebook doesnt work correctly.....

    This morning firefox updated itself, and now all of the pop-ups on facebook do not work, no chat, no messages, etc....... is it a default setting that isnt allowing it? i tried my IE and it works fine on that...... ???????? thanks!!!!
    == URL of affected sites ==
    http://facebook.com

    Hello.
    You may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • Loop doesnt work

    Hi guys,
    I need ur help,I am beginner to adobe flex and i got the following problem. When I write any Loop(for,while,...etc) I got the following error
    1120: Access of undefined property i.
    My code
    <fx:Script>
             <![CDATA[
             var i:int;
             for(i=0;i<5;i++)
             ]]>
         </fx:Script>
    I am using Flex 4 SDK
    Adobe Flash Builder 4
    Thanx,
    Osama

    hi,
    If your code is actually as shown you will get the error as there is no function declaration
    private function myloop(): void
    for (var i:int=0; i < 10;i++)
    notice also that you can declare the variable in the loop statement.
    David.

Maybe you are looking for