Need help understanding why "1 is always equal to 1" is necessary in my Advanced Action

I am using Captivate 7 and publishing as a SWF.
I have an interaction that works, but there's one script that I use (which I found in a tutorial) that I don't understand the purpose of.
The interaction is contained on a single slide where a user clicks two buttons in any order and a graphic appears after the second click. On each button I have a Conditional Advanced Action where I first check that it will always be true that "1 is equal to 1", then assign each variable with "1", then check that each variable was equal to 1 after which the graphic appears.
The part that confuses me is checking if "1 is always equal to 1." Why is this script necessary in this case? Is it necessary because I'm including a Standard Advanced Action (assigning variables to "1") within the Conditional Advanced Action? Or is related to the fact that I'm doing everything on one slide (not using an On Enter slide event executing a Conditional Advanced Action)?
Thanks.

Perhaps it will help to think using different terms.
If you need a script that performs a check against some condition, you need a Conditional Action. Maybe you need to show an image if button 1 has been clicked. And if button 2 has been clicked, you need to show a different image.
Before checking to see which button has been pressed, you need to hide both images so that only the desired image is shown. So you need to perform the same action each time before checking some variable to take a specific action.
This is where the "If 1=1" would come from.
Each time the script is run, hide both images. Since the check to see if 1=1 will ALWAYS evaluate as true, the "ELSE" part will never be reached. So you would always perform the same actions just as a Standard Action would do.
Perhaps if you posted some screen captures of your scripts, we might better explain it.
Cheers... Rick

Similar Messages

  • Received a mail delivery subsystem email - need help understanding why?

    I sent an email to two groups...total quantity of people was 32 recipients. I received the following email. It references this...Chair Contacts"@mailpod.hostingplatform.com...which I have no recipient with this email string. I can't tell if all the emails were rejected or not, nor do I understand why this continues to happen. Can you please assist?
    Emma
    The original message was received at Sat, 6 Sep 2014 01:17:44 -0400
    from [10.30.71.79]
    *** ATTENTION ***
    This email is being returned to you because the remote server would not
    or could not accept the message. The registeredsite servers are just
    reporting to you what happened and are not the source of the problem.
    The address which was undeliverable is in the section labeled:
    "----- The following addresses had permanent fatal errors -----".
    The reason your mail is being returned to you is in the section labeled:
    "----- Transcript of Session Follows -----".
    This section describes the specific reason your e-mail could not be
    delivered.
    Please direct further questions regarding this message to your e-mail
    administrator.
    --Registeredsite Postmaster
    ----- The following addresses had permanent fatal errors -----
    <"Chair Contacts"@mailpod.hostingplatform.com>
    (reason: 554 5.4.6 Too many hops)
    ----- Transcript of session follows -----
    554 5.4.6 Too many hops 36 (35 max): from <[email protected]> via localhost, to <"Chair Contacts"@mailpod.hostingplatform.com>
    Reporting-MTA: dns; atl4mhob05.myregisteredsite.com
    Arrival-Date: Sat, 6 Sep 2014 01:17:44 -0400
    Final-Recipient: RFC822; "Chair Contacts"@mailpod.hostingplatform.com
    Action: failed
    Status: 5.4.6
    Diagnostic-Code: SMTP; 554 5.4.6 Too many hops
    Last-Attempt-Date: Sat, 6 Sep 2014 01:21:09 -0400

    This indicates the email alias you are sending the message to has some sort of redirection or other loop problem which makes it bounce. Contact the systems / email admin / support at mailpod.hostingplatform.com to troubleshoot it.
    There is also a bug in Thunderbird 31.1, this may be related.
    It's [https://bugzilla.mozilla.org/show_bug.cgi?id=1060901 Bug #1060901]. If you have an account on Bugzilla, please consider voting for that issue.
    Several other people have sent in similar support requests to yours, noting this happened after they upgraded to version 31.1.
    The exact error message is: XXXX is not a valid e-mail address because it is not of the form user@host. You must correct it before sending the e-mail.
    '''This happens in Thunderbird 31.1.0 when your mailing list description includes several words separated by spaces.'''
    Although not ideal, these workarounds should let you use your mailing lists until a proper fix is implemented:
    * While composing an email open the address book and select the list you are trying to send to, highlight all the names in the list and drag them to the To: box. This uses your existing data without modifying it.
    * Replacing the blanks " " between the words in such lists' descriptions with an underscore "_". This requires modifying your mailing list(s) description(s).
    * Downgrade to a previous version and disable automatic updates (Windows)

  • Hello everyone I need help! Why i cant Update to Mountain Lion if Im gonna try to update my Macbook Pro with Mac OS X 2.3 GHz Intel Core i5. It always says "Your Software is up to date" which is only Mac Os X ver. 10.7.5

    Hello everyone I need help! Why i cant Update to Mountain Lion if Im gonna try to update my Macbook Pro with Mac OS X 2.3 GHz Intel Core i5. It always says "Your Software is up to date" which is only Mac Os X ver. 10.7.5

    Not sure what exactly you did (or not), but it looks as if you should attempt doing it all again, only this time all right and by the book. Many millions have done so, and sure it'll work for you as well.
    If you've indeed purchased ML already, you'll find it exactly there in the App Store: under Purchases.

  • I need help understanding how the Apple components integrate to create a system across all my devices?

    I need help understanding how the Apple components connect to create a whole system across all my devices?
    Is there a resource that describes current system and associated functionality?
    For example:
    Buy A, B, C to achieve "X" 
    You will need:
    an internet provider which supports <specs>
    add D to achieve "Y"
    You will need:
    an internet provider which supports <specs>
    add "E" to achieve "Z"
    You will need:
    an internet provider which supports <specs>
    For example, I am looking at the Gen 6 Airport extreme.  For intended performance do I need broadband? if so what are the specs, or will basic internet service suffice?  Do I need the internet provider's modem or does the Airport extreme replace that?  And then I think, if I am doing this, I should also look at Apple TV....What do I need and Why?  Then I look at the New Desk top coming out in the fall, and I think well, if I wait and get this, what does this component do for the system, and what becomes redundant? What does this awesome desktop do for my ability to sit and use a new macbook air when I travel  or sit on the couch in my PJs?
    If there was a place that plainly stated "if you buy the new dektop you can configure a system including only these components and achieve <this result> and by adding <additional components> you will achieve this result.
    I have been to the genius store a few times, but I come out of there more confused unless I have SPECIFIC questions or already know what to buy. 
    A "System Configuration App" would be a really great sales tool--Just saying.

    I have no idea what "fully optimized" means.
    No Apple device will let you watch broadcast TV. The Apple TV is a good option for watching streaming TV from iTunes, NetFlix and Hulu. If you want to watch from other sources, you may need to look at other devices.
    Any Mac computer or iPad will allow you to surf the web.
    What business software?
    Time Capsule is a good option for back ups.
    Update what across all devices?
    For accessing documents from all devices, a service like Dropbox is your best bet.
    I have no idea what "step as far away from an internet provider as possible" means. If you want Internet access, you need an Internet provider.
    Lighting fast speed for what? Processor? The specs are listed for all devices in the Online Store. Internet? We're back to the service provider.
    Technology changes. The only way to keep pace with it beyond a couple of years is to buy new stuff.
    The bottom line is you need to look at the specs for devices availble and at your budget and decide what best meets your needs. If you are unable to do that on your own, there are lot of technology consultants out there who will, for a fee, look at your exact situation, make recommendations and even handle the purchase and set up. Perhaps that would be the best route for you.
    Best of luck.

  • My email address is ***********, Apple ID I forgot my password, why not send links that Reset Pass on my email, I need help than why? Contact Us By Email me back with ***********, Thanks

    My email address is ***********, Apple ID I forgot my password, why not send links that Reset Pass on my email, I need help than why? Contact Us By Email me back with ***********, Thanks
    <E-mails Edited by Host>

    You are not addressing Apple here. This is a user-supported technical support forum. If you have tried to restore your Apple ID using iForgot, then try contacting iTunes Customer Service.

  • Need to understand why I had to remove / re-add the alias

                       I have a asa5520-k8 with 7.2(4) that I found an NAT that was missing but before I can enter it I had run two commands below in order to enter it and I need to understand why if the xlate entry did not exist.. 
    no alias (inside) 10.120.208.26 172.27.208.26 255.255.255.255
    alias (inside) 10.120.208.26 172.27.208.26 255.255.255.255

    Sorry the alias (inside) 10.120.208.26 172.27.208.26 255.255.255.255 did exist but I noticed that it was not working and to fix it I had to run the two commands to get the NAT to work again .. Need to know if this is a bug or correct way to fix a translation issue...

  • Need Help Understanding How To Use iMessage Between Two iPhones

    I have an iPhone 4 and my wife an iPhone 3GS.  We both have iOS 5, but I have discovered something about iMessage I need to make sure I understand correctly.  As I understand it iMessage can send text even if our voice carrier service is unavailable.  I tend to loose signal inside the building I work in.  I usually can get texts in and out, but sometimes not.  But in testing the two phones sending iMessages, I've noticed is that if I have one of the phones with iMessage turned on and the other with iMessage turned off, the two phones will not be able to exchange text.  Is that how it's supposed to work?  Even though one of these phones can receive an iMessage doesn't mean the other one send one back.  Can't the system detect when one phone is connected and another one not, and the one that is not gets sent SMS messages instead?  I don't want to try to send my wife an iMessage because I can't get a voice signal in my building, but her have iMessages turned off and not able to get any messages from me, iMessage or SMS.  I guess I need help better understanding how this actually works between the two phones so I can always get texts back and forth between my wife and I.  My other misgiving is that this iMessage thing consumes my data limit.  My wife gets unlimited because she had her phone before the limits were imposed, but I got on board after, so I am hesitant to use iMessage all the time because of it.  I have no intention to send picture mail through iMessage, but the thing is if I wanted to switch to SMS to send picture mail to save data, but my wife's phone is set to iMessage, she won't get it.  If this is how this thing is supposed to work, I'm not really impressed.  Some insight would be appreciated

    I think you are making this way too complicated. Why are you turning iMessage off? If you are at your office connect to the WiFi there and send your wife messages that way (unless your office is blocking the port iMessage uses). When possible the two phones will use iMessage but will revert to SMS is iMessage is not available if that option is set that way.
    I would not worry about using up your data plan if you have the 2GB, text iMessages are going to be very small and MMS (picture) ones are not very large either. Unless you are sending hundreds of picture iMessages a day you will have a hard time using up your data.
    If you are near an Apple Store you should explore signing up for an intro iPhone course and have them run through iMessage options.

  • Need help understanding syntax

    Hi,
    I need some help to understand the following syntax .
    PPRAMImpl am = (PPRAMImpl)pageContext.getApplicationModule(webBean); What is this PPARAMImpl?
    I know "am " is a variable . And with pageContext.getApplicationModule(webBean) we are trying to get the AM name for that page, then why do we need to add (PPARAMImpl) before pageContext.getApplicationModule(webBean) ?
    For example in plsql , apps.testpkg.mainproc(param1,param2)
    means
    schema.packagename.procedurename(parameter1,parameter2).
    So can you explain "PPRAMImpl am = (PPRAMImpl)pageContext.getApplicationModule(webBean)" in that manner?
    pageContext.getParameter(EVENT_PARAM))
    What is this ?
    What are the possible values for EVENT_PARAM ? And by the way , I need help on setting a default value for one of my search parameters in a search region .
    Correct me If I am wrong, this is what I thought
    1. EOImpl has setters and getters for that attribute. So call the setter method in controller and set the value , if this is right then I don't know how to right the code ,can you give me some sample code ?
    or
    2. get the view object name and then set the value for that . like viewobject.setattribute('att name',att value'),if this is right then I don't know how to right the code ,can you give me some sample code ?
    Thanks
    Sri.

    Hi,
    No. These are not equal.
    pageContext.getApplicationModule(webBean) return AM of type OAApplicationModule.
    It would be fine if your variable am, is of type OAApplicationModule:
    OAApplicationModule am = pageContext.getApplicationModule(webBean) // this would be fine.
    But as you are using of type PPRAMImpl, you must have to type-cast that externally using:
    PPRAMImpl am = (PPRAMImpl)pageContext.getApplicationModule(webBean);
    If you are still not clear, then refer any java book or google for internal & external type-casting in java.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I need help dividing an image into two equal parts in Adobe Illustrator CC--ASAP!!!

    I need help dividing a single, already created image into 2 equal parts...Am getting nowhere so far

    Hi Willi, thanks so much for responding! Below is the image I need to divide in half. The left half where it says "Click here for the definition" links to a landing page where people can read the definition of the Hebrew Word. The right half links to an audio recording of the Hebrew word being spoken aloud. I am trying to figure out how to use the scissors or knife tool in Adobe Illustrator and am having no luck. Plus I believe there's a way to include URLs on each separated part, but I can't get past figuring out how to cut it. My background is not graphic design

  • I need help diagnosing why my Macbook pro is crashing my internet?

    Hi, I need help diagnosing a problem with my macbook pro early 2011.  For the past two weeks all of a sudden my internet was crashing and really slow. Finally I was getting so fed up I called my internet provider and we ruled out that it isnt the cable modem or router.  When I turned my macbook off everything was working fine and all my tablets and apple TV was streaming fine with the speeds I pay for.  I've already went to the genius bar and they did a clean install of maverick.  After the clean install the internet worked for one day and the next day when I got home at night it stopped working. Went to the genius bar once more and took my router and the problem was encountering the same at the store we reseted the router and everything worked fine again.  When I got home I reseted the router setup up with new ssisd and same problem internet crashing. Finally I decided to make another account and the internet was working fine again. Before going to my second trip to the genius bar I made a second account which was working good with good internet speeds, but I still decided to go in cause I don't want to have to have multiple accounts since I'm the only user.  Right now the only way the internet isn't crashing is using another account rather than the administer account. Please help cause I've already went to the apple store twice and feel like I'm at the end of the road and never going to fix the problem

    When you next have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode, or until they start to repeat, whichever comes first. Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Need help understanding JPA and detached entities.

    I keep getting the dreaded "Cannot Persist detached object" and I cannot understand why EclipseLink is even trying to persist the object.
    The following is a general scenerio if the issue:
    1. I have 3 objects "Parent", "Child", and "Agency".
    2. I create a new "Agency" and persist it using em.persist(agency).
    3. The "Parent" object contains a OneToMany relation to "Child" and "Child" has a reference to "Agency".
    4. So I do something like:
    agency = new Agency();
    em.persist(agency);
    child = new Child();
    child.setAgency(agency);
    parent = new Parent();
    parent.addChild(child);
    em.persist(parent);
    I have Cascade.ALL on the OneToMany relation so I expect that persisting the parent will also persist the child. This part works, however for some reason the agency is trying to be saved and that's were I get the error.
    Now if agency was not already persisted, everything works fine. Parent, Child, and Agency all get persisted.
    Since there isn't really a way to merge() agency how do I handle this issue?
    I don't really understand all the clones and how merge works, so I don't have a good grasp on how cascade works itself through the objects? I did step through the code in the debugger and it simply wants to register agency as a new object even though the primary key is set.

    Hello,
    I believe what you are showing and trying is just confirming what I mentioned in my previous post. The specification does not allow you to persist a detached entity and forces an exception to be thrown. When you have a detached entity referenced through a relation marked with cascade persist and then call persist on the owning object, it is the same thing as calling persist on the detached object directly - you will get an exception. If the relation is not marked cascade persist, and agency is new then you definetely will get an exception - without the provider finding out and throwing its own exception, the child object would have tried to insert a foreign key to an agency that doesn't exist.
    Not marking the relation as cascade persist or using find will only work if the agency exists and was previously persisted. The problem then you mention is that you might have made changes to the detached agency or it may not already exist - the JPA provider only finds changes made to managed objects. Merge can be used when you do not know if it exists, and it will pickup changes made to the detached object.
    Solutions are:
    1) agency = em.merge(agency);
    child.setAgency(agency);
    or 2) em.merge(parent);
    Solution 1 might be more efficient, since merge on new objects could require more resources than persist due to existence checking requirements.
    Best Regards,
    Chris
    ...

  • 2012 R2 Need help understanding profiles/run as accounts

    I'm new to SCOM, just installed 2012 R2, everything is set up.  Basically only 2 servers.
    I've installed management packs for base OS, IIS, AD, Lync 2013, SQL.
    The first thing after that I set up a run as account for email notifications.  In doing so I used an AD account but chose less secure.
    I then created a notification channel, subscribers, and subscriptions.  It worked and I was getting emails because I bound by Notification action account to the notification account profile.  The problem in doing so is that now I got alerts on all
    my DCs that the run as account does not exist on the target machine.  So in choosing "less secure" or "all targeted objects" on the run as account, it is trying to use that account for my notifications instead of the default.
    So I started messing around with things, such as the run as accounts used for the notification account profile but things are just not working as expected.
    Also for some reason the 3 Microsoft Lync Server Profiles have the network server windows account bound to them which I can't remove.
    So in the end here is what I did for email alerts.  We have a seperate anonymous SMTP relay set up.  I created a new run as account called "notification action account" and chose an newly created AD account which is just a domain
    user.  Inside of the distribution tab, I selected more secure but added the SCOM server itself because I don't have the agent installed on our open SMTP relay and it allows internal anonymous email. Under the Profiles, Notification Account I set the run
    as account to the "Notification action account" I created, but still selected all targeted objects.  That seems to be working and I'm not getting alerts from my DCs about the account doesn't exist on the target. 
    I'm just not understanding why if you don't specify more secure and put in specific servers, it trys to use that account to connect to everything instead of using the default.

    Hi,
    If you choose to distribute the Run as account to all the agents, all the workflows on the agents associates with this profile will use this account.
    http://technet.microsoft.com/en-us/library/hh431855.aspx
    http://blogs.technet.com/b/kevinholman/archive/2010/09/08/configuring-run-as-accounts-and-profiles-in-r2-a-sql-management-pack-example.aspx
    Juke Chou
    TechNet Community Support

  • I need help understanding the issues on why i can not download the latest version of shockwave player. this affecting all of my game play on any game i attemt to run.

    is there anyone who may be able to help with the issues at hand? my current version of shockwave crashes at will! this is affecting any and all games i try to run. i have tried several times to download the latest version with no luck. if there is something i have done wrong, or something i have not done...please feel free to direct the right course of action.

    See my response to your other question

  • Need help determining why my podcast has disappeared from the iTunes store.

    For a while, the last ten episodes or so were missing, but now the entire show is gone. The feed url is: www.warrenandbradley.com/feed/podcast
    The feed seems to be perfectly valid and work just fine. I can't think of anything I've changed, and have been submitting new episodes very regularly. Is there any way to determine why it's disappeared from iTunes?
    Any help would be greatly appreciated.

    bradavic wrote:
    If I am forced to submit it again, would this mean that I'd lose all my subscribers?
    So far you haven't lost any subscribers because your feed is still there - they read it directly and the Store is not involved. It's just that without the Store you aren't likely to get any new ones.
    If you can manage to resubmit it by changing the title but not the feed URL then it won't affect subscribers. However sometimes you need to change both (and it can help to change the contents of the 'link' tag) and of course if you change the URL your subscribers will lose contact with you.
    You can get round this by adding the 'itunes:new-feed-url' tag to the existing feed, redirecting to the new feed - this will seamlessly move subscribers to the new feed (provided of course that you have access to the feed to edit it). The details are given here:
    http://www.wilmut.webspace.virginmedia.com/notes/podcast.html#move
    (It refers to moving the Store to the new feed; of course this isn't relevant here, but it applies equally to subscribers.)

  • I need help understanding export options and optimizing for web

    I have been using FCP X for a short while now and have a pretty good grasp on the editing capabilities. What I'm having a horrible time figuring out is the export/share options. The videos I create are typically approximately 1 minute in length and get posted to a web site (we have our own CMS and video player so I'm not using YouTube or Vimeo or anything like that). In order to post them I need them to be MP4s and then I have to create .webm and .ogv files. The source material I work with is generally great, high quality stuff, so I end up with very large output files from the initial FCP share master file options.
    When I use MPEG Streamclip to make my MP4s I end up with files that are still quite large and I can't seem to ever get the file size manageable without losing tons of quality. I do not have Compressor, though if that will solve my problem I will put in for the expense of it. What I'm trying to understand is what sorts of settings I should be trying out to get my file sizes to be manageable without completely compromising my quality. And I know this can be done, because the company I work for pays for a great quantity of video work each year (from an outside production firm) and the clips provided are beautiful in quality and small in file size -- for example, I recently worked on a video and got it into the 40MB range before quality went to crap, working off the same material the production company we do work with had theirs down into the teens and looking beautiful!
    To throw an even greater wrench in the works, I am working off a mac. But when my boss, on a pc, saves the mp4s I create (raw files -- not what is posted to the web) locally on his machine and views them from there the sound is always off a tad and the people in the videos look like they're lip synching.
    Any advice on either of these is MUCH appreciated. I've been trying to figure this out properly for months, and only today decided to stop seeing if someone else had the same question and just post my own.
    Bronwyn

    Thank you Karsten, this was helpful I have utilized the Quality slider and the frame size options before though with limited results. I've never messed with the Limit Date Rate option as I don't know what I'm doing with it, I see you put 5Mbps. Is that a typical setting that I could use?
    Using stream info, here's info on my original source file:
    Stream: Charles_0023_2.mov
    Duration: 0:00:51
    Data Size: 96.51 MB
    Bit Rate: 15.77 Mbps
    Video Tracks:
    H.264, 1920 × 1080, 29.97 fps, 15.64 Mbps
    Audio Tracks:
    MPEG-4 Audio stereo, 48 kHz, 127 kbps
    Stream Files:
    Charles_0023_2.mov (96.51 MB)
    As a comparison, here's the info on a similar clip that the company we sometimes use created:
    Stream: Charles_0019_4.mp4
    Duration: 0:00:49
    Data Size: 4.66 MB
    Bit Rate: 0.80 Mbps
    Video Tracks:
    JVT/AVC Coding, 710 × 400, 29.97 fps, 635 kbps
    Audio Tracks:
    MPEG-4 Audio stereo, 48 kHz, 162 kbps
    Stream Files:
    Charles_0019_4.mp4 (4.66 MB)
    I'm fine with bringing the frame size down some and modifying the limit data rate, but sometimes I feel like I'm forcing my video into something it's not and the quality suffers -- this is where my understanding of video work breaks down LOL. Any suggestions of how I can get my .mov into something like the the .mp4 above?
    Also have you had any experience with mp4s not playing back properly on pcs?
    Again, thank you!
    Bronwyn

Maybe you are looking for