Writing an if-then statement

I would like to write an if-then statement that would hide an element (image of a pause button) when the main timeline is stopped. I have a play forward button that when pressed will switch to a pause button. The same happens for the play reverse button. This way the buttons are like toggles...press once it plays and press again and it stops. I have this working fine, but there are several stop triggers throughout the timeline, and when the animation is stopped my pause/play button will still be in the pause button mode, thus a user will not be able to restart the animation. There are too many of these stop triggers to make it practical to add a hide command to each to hide the pause button (thus making the play button underneath accessable), so what I would love is if I could write a statement that would hide both pause buttons whenever the timeline is not running.
I need to know the correct way to write the code and where to put it.
Thanks in advance,
Greg

Hi Joel...
you can view the test site here http://cyclesofyah.com/slider-test_screen-swap-test/
and you can download the files here http://cyclesofyah.com/chrono/cycles_test.rar
you won't see much happen until you click on the gear icon. While the timeline is running you can type any number on your keyboard, and it will take you to a stop trigger.
Thanks

Similar Messages

  • I need help writing an if then statement Java Script.

    In the Text Field Properties box I see the Calculate tab where I think that the form can do a logic (IF/THEN) function if I can place the correct Java Script code into the form. Unfortunately; I do not know how to write in Java Script.
         - I have a form with a field identifier called BACompnayAddress (this is the field where they would enter their address).
         - I then have a form field with two radials that says "Is the shipping address the same as the business Address" - "Yes" and "No" (the form identified for the radials is SASame.
    What I am trying to accomplish:
         - If they click Yes, I would like the Shipping Address field (field identifiier ShippingAddressAddress) to fill in the information found in BACompanyAddress and if they click No leave the  field blank to be filled out by the person filling out the form.
    I appreciate any help.
    Thanks,
    Brett

    If that's what it does, that is exactly what you said it needs to do. You said niothing about what should cause it to go back to frame 1.  If you want it to go back to frame 1 with a ROLL_OUT event, then you would add a listener for that. If you want something else to trigger it to go back, then you just need to work that out.
    The only time I can see where an if/else would be needed is if you want it to change frames for every rollover such that if it is in frame 1, then go to frame 2, and vice versa the next time you rollover it.

  • If-then statement in formula node

    **Note - The attached file shows the current block diagram.
    I have a formula node inside a for loop. Inside the formula node I am trying to program the if-then statement:
    If T1<2.0E-5 OR T1>5.5E-4 THEN GOTO 3
    U7=U7+V
    I have 4 items I need help with:
    (1) Is 'II' the correct operator for 'OR'?
    (2) Is 'goto' an acceptable operator within LabVIEW?
    (3) 'U7' is building a 1D array. How do I need to define it? Is it simply 'int U7'? Also, I will add an output value named 'U7' on the formula node wall with an indicator wired to it from outside the for loop.
    (4) Is my use of the equal sign appropriate or do I need to use '=='?
    Thanks for the help.
    Philip
    Attachments:
    if-then_in_FN.jpg ‏18 KB

    Thanks for the help. I went ahead and rewrote the program so I could omit the 'goto's. Another problem that I am having is that I want 2 statements for 1 assignment:
    if (T1>=.002004 && T1<=.002584)
    B1=U
    A1=V;
    I want to assign both B1 and A1 values when the above condition is true. I tried a comma between the U and A1 but it doesn't work as well. Should I define A1 and B1 separately? Or would this create problems?
    if (T1>=.002004 && T1<=.002584)
    B1=U;
    if (T1>=.002004 && T1<=.002584)
    A1=V;
    Thanks,
    Philip

  • "If, Then" Statements Driving Selection

    I am creating a price list/order form and need some help with "If, Then" statements and how their result drives a price selection.
    I have a product that is priced differently based on both how many is purchased and how many colors it has. My variables are (a) one, two, three or four colors, and (b) 10 to 500 pieces in six tiers (10-24, 25-49, 50-99, 100-249, 250-499, 500+).
    I want to autopopulate a price field based on the color number and the quantity, making the pricing foolproof and the total order amount automatically calculated.
    Here's my situation:
      - Field A is Number of Colors (let's say 1-color)
      - Field B is Quantity (let's say it's 23, putting us in the 10-24 tier pricing)
      - Field C is Unit Price (1-color @ 23 qty would be $76.63 each)
      - Field D is Total Price (23 x $76.63)
    My statement would look like the following, but I don't know how to structure this in the form fields or where to put the quantity or pricing table for the software to calculate B or C:
    If A is 1-color, and B is 23, then C is $76.63.
    My Field D calculation is pretty straight-forward (Field C x Field D) if I can figure out a way to determine Field C's value.
    Help!

    Have a look at these tutorials:
    http://acrobatusers.com/tutorials/conditional-execution
    http://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations
    If you still need help afterwards, post here again.

  • DISCOVERER 3.1, IF,THEN STATEMENT

    Dear All,
    I am not an experienced Discoverer user. Please forgive my ignorance.
    I would like to create a column that will "fill in" certain text based on the contents of other columns.
    I have been partially successful by using the DECODE function, but I have only been able to base my result on one column.
    What I need to do is create text statements that will vary based on the contents of 3 different columns. For example IF Fruit=** AND Color=*** AND Date Picked = *** then Statement= MY STATEMENT.
    FRUIT COLOR DATE PICKED STATEMENT
    APPLE RED 30<SYSDATE BAD RED APPLE
    APPLE RED SYSDATE O.K. RED APPLE
    APPLE GREEN SYSDATE BAKING APPLE
    PEACH PINK >SYSDATE GOOD FOR PIES
    Any and all help would be greatly appreciated!
    Thanks
    nancy
    [email protected] or [email protected]

    Dear Andrew,
    Thanks so much for taking the time to reply. I will try this.
    nancy
    Hi Nancy,
    I am not an experienced Discoverer user, but I know SQL. So here is a SQL solution, there might be Discoverer specific ways of doing this I do not know about.
    OK, First try breaking your problem down into parts.
    Outermost: DECODE(fruit,'APPLE', apple_only_section ,
    fruit,'PEACH', peach_only_section ,
    other_fruit_section)
    apple_only_section: DECODE( color , 'RED', apple_red_section ,
    color , 'GREEN', apple_green_section ,
    other_apple_section )
    // Here is where things get 'tricky' to try to determine date ranges.
    apple_red_section: DECODE ( greatest( trunc(sysdate)-30,date_picked) ,
    trunc(sysdate)-30) , 'BAD RED APPLE' ) ,
    'GOOD RED APPLE' )
    The 'greatest' statement above is key to doing date-ranges in a column,
    And you should think about whether the dates should be truncated to remove the time component (as I do for sysdate above).
    And once you have the sections like 'apple_red_section' that you know work, running independently, you start embedding them together to form the higher level statements.
    You end up with hard to understand gobbledegook, but it does work.
    The decode statement is tricky even for a programmer, so work in stages and get each part working before you try to combine them. Better yet get a programmer to write exactly what you want.
    Andrew

  • I tried to open my Illustrator CS6 today and got the following error message, "To open Adobe Illustrator CS6 you need to install the legacy Java SE runtime". The window then states, "Click More info...to visit the legacy Java SE 6 download website."  I do

    Help. I tried to open my Illustrator CS6 today and got the following error message, "To open Adobe Illustrator CS6 you need to install the legacy Java SE runtime". The window then states, "Click More info...to visit the legacy Java SE 6 download website."  I do click on the More Info... button, but the webpage is blank. Please help.
    Thanks,
    Leo

    Leo,
    Depending on your OS, you should be able to use;
    Win:
    http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419 409.html
    Mac:
    http://support.apple.com/kb/DL1572
    Some have found that the page may turn up blank to start with, so it may be necessary to reload the page.
    Others have found that it may depend on browser. Specifically, a switch from Safari has solved it in one case.

  • Quicktime 10.0 will not play apple trailers from site. I have Mac OS X 10.6.8 - site directs me to download - then states I have it already - all software updated.  What do I do?

    Quicktime 10.0 will not play apple trailers from site. I have Mac OS X 10.6.8 - site directs me to download - then states I have it already - all software updated.  What do I do?

    JessBennet wrote:
    ... I already clicked on the Apple symbol on the top left part of my screen and clicked "Software Update'' but it says I am up to date, which clearly is not right)
    It is Correct for your Current OS = Leopard = 10.5.8
    The first step in Upgrading... is to Snow Leopard = OS X 10.6.x
    It is Not available as a download...
    Do this first...
    Check that your Mac meets the System Requirements for Snow Leopard...
    Snow Leopard Tech Specs
    http://support.apple.com/kb/SP575
    If so Contact Apple in your Country to Purchase a Snow Leopard Disc...
    http://support.apple.com/kb/HE57
    In the US...
    1-800-MY-APPLE or 1-800-676-2775
    After the Successful Install, run Software Update to get the latest updates for Snow Leopard.
    Be sure to make a Backup of your Current System Before Upgrading...

  • Scanning photo and does scan then states ;Non writable will not save?????

    scanning photo and does scan then states ;Non writable will not save?????

    If you're having trouble making changes to files that are inside your home folder (represented by a house icon in the sidebar of a Finder window), or if you can't get changes to the settings of an application to stick, then please see below.
    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal 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 Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if it frightens you, or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password dialog will open. You’re not going to reset a password.
    In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.
    Select your username from the menu labeled Select the user account if it's not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • EDQ - Writing CASE or DECODE statement

    Test
    Edited by: user4362313 on May 3, 2013 5:00 AM

    Hi Bala,
    If I've interpreted the statement correctly then you're wanting to pad the digits to the left of a decimal point to four characters, so 12.345 becomes 0012.345.
    The easiest way to achieve this is by using an Expression processor [see the online help for full syntax details]. Assuming the input attribute is called "col1" then the following expression should acheive the desired result:
    substr("000" || col1, indexof(col1, ".") - 1)
    regards,
    Nick

  • Black screen with white writing on boot - then nothing...

    Ok, this is a long story, but here's the abridged version;
    I have a mac mini - the old PPC version. It has just come back from being repaired - replacement logic board. However, repaired it is not. Every time i try to start it up, I get a brief white screen with grey apple logo as normal, and then a black screen with white writing on. The writing is exactly the same text as you can see in the console system log. It gets about a page-full through this, and then goes completely black. No video at all.
    However, the machine is still working in there - I know this because I'm typing on it now via VNC. It is perfectly happy and all. It just does this weirdness start up and then no video.
    My question is twofold:
    1. The company that repaired it claims that it booted fine before they gave it back to me; however, it hasn't since I've had it back. Could the boot behaviour be some kind of diagnostic thing they left on my machine, or a mode they left it in. If so, how do I get rid of it?
    2. Failing this, does it sound like my vidoe card packed up maybe?
    Thoughts, solutions, etc., most welcome!

    Have you
    tried to simply do a clean install of Mac OS X and
    your other software? I normally find that this fixes
    90%+ of all unexplained software related issues.
    I could, but (a) I'm not convinced it's not related to the replacement logic board and thus a hardware issue, and (b) I can't see to do a clean install because it has no video signal

  • HT201210 When trying to restore states" extracting software then states" device can't be found". Any suggestions?

    Wen trying to restore my IPHONE message first states" extracting software". Then a message states" device can't be found". Any suggestions?

    maybe:
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

  • Testing the content of à SELECT in a "IF THEN" statement

    OK, here it is, I've done that :
    declare
    ex integer;
    begin
    select count(*) into ex from user_tables where table_name='XB0109070001';
    if ex>0 then
    insert into toto (a)values('OK, works !!');
    end if;
    end;
    and that works fine.
    but when I'm trying to do that in a procedure, I have to make some modifications and it doesn't work:
    req:='select count(*) into ex from user_tables where table_name='''||ntable||'''';
    execute immediate req;
    if ex >0 then
    req is declared as varchar2 ex as integer and ntable provide the name of the table to select on.
    With this, I get the message 00905. 00000 - "missing keyword"
    What's missing here ?

    Try this
    create or replace Procedure type_paiement
           journal   varchar2,
           an        varchar2,
           mois      varchar2
    is
    declare
        prefix_ntable varchar2(8);
        ntable        varchar2(12);
        i             integer;
        ex            integer;
        req           varchar2(256);
    begin
        --execute immediate 'delete from xx_jk_mreg'; <<- Dont use dynamic sql here you dont need it.
        delete from xx_jk_mreg;
        prefix_ntable:='XB' ||journal ||an ||mois;
        for i in 1..100
        loop
          ntable :=prefix_ntable||lpad ( i,4,'0') ;
          --req :='select count(*) from user_tables where table_name=:1'; <<- again you dont need dynamic SQL here
          --execute immediate req into ex using ntable; --Lesson learned. Thx.
          select count(*) into ex
            from user_tables
           where table_name = ntable;
          if ex > 0
          then
            execute immediate 'insert into xx_jk_mreg (clie_code,journal,periode,origine)
                               select distinct c.code,
                                      lpad(:1,2,''0''),
                                      lpad(:2,4,''0''),
                                      :3
                                 from '||ntable||' xb,
                                      dossier d,
                                      client c
                                where xb.cmpt=''4111''
                                  and xb.doss =d.code
                                  and c.code =d.clie'
              using journal, mois||an, ntable,  ; <<- Again use bind variables.
          end if;
        end loop;
    end;
    /Please use {noformat}..{noformat} tags to format your code. Its very hard to read unformatted code.

  • If/Else/Then statement in Bex

    Hi all,
    I want to create some conditional logic in Bex formula. The logic I need is:
    IF (KeyFigA exists) THEN (use KeyFigA) ELSE IF (KeyFigB exists) THEN (use KeyFigB) ELSE (use KeyFigC)
    I am a bit confused on the operators I need to use...Can anyone help?
    Thanks
    CM

    Hi,
    ( KFA <> 0 ) * KFA + (KFA == 0 ) * (KFB <> 0 ) * KFB + ( KFA == 0 ) * ( KFB == 0 ) * KFC
    Just as Bob said, however, you need to use the <> symbols for .NE..  You can also select the symbols in the Boolean Logic section.
    Brian
    I think I know why Bob added the .NE., even though I can see them in my edit screen, they are not showing up in the message after I save it.
    Edited by: Brian Anthony on Oct 20, 2008 4:39 PM

  • If/then statement in numbers

    Hello, I am working in numbers version 3.5.2 (2118) and have created a spreadsheet for inventory. I have figured out how to have it mark the cells with a negative number in red, but I would also like the spreadsheet to populate the entire row at the bottom so that it can quickly make a list of what needs to be ordered. Here is an example of what it looks like:
    In column I the negative cells are red, I want it to take that whole row and summarize all the rows that have a red/negative answer in column I at the bottom of the spreadsheet. Is this possible and if so what would the formula be?
    Thank you
    iMac OS X Yosemite Version 10.10.2

    Have you considered sorting the table so that the negative rows are all at the top, then copying those rows and pasting (using the menu item "Edit > Paste Formula Results) them into another table?

  • Conditional If-THEN statement in PL/SQL

    Hi,
    I've got a question here. I looked through some other threads, but didn't really see any discussing what I'm trying to achieve.
    I've got a statement:
    SELECT DISTINCT AID, ACTIVE, REQUESTOR_NAME, REQUESTOR_EMAIL,BUS_CONTACT ,DEPT,LOCATION,DATE_REQ,BUSVP,VP_PHONE,VP_DATE,BRANCH,PRIORITY,STATUS1,STATUS2 FROM CHANGE_CONTROL_ADMIN a INNER JOIN CHANGE_CONTROL_USER b ON a.CHANGE_CTRL_ID = b.CHANGE_CTRL_ID WHERE UPPER(REQUESTOR_NAME) LIKE ? AND DEPT = ? ORDER BY AID;
    So this is in my Java servlet coded like so, but I am pulling the DEPT value from a dropdown menu item list and setting that string value = to the corresponding dept. Works great! Except for when/if someone left the department select menu to the default, which is "" or null.
    So I'm wondering, is there a way to tweak the PL/SQL statement so that "AND DEPT = ?" is bypassed if the value is null?
    How would that look?
    Any help is appreciated!
    Thanks!

    Hi,
    I've got a question here. I looked through some other
    threads, but didn't really see any discussing what
    I'm trying to achieve.
    I've got a statement:
    SELECT DISTINCT AID, ACTIVE, REQUESTOR_NAME,
    REQUESTOR_EMAIL,BUS_CONTACT
    ,DEPT,LOCATION,DATE_REQ,BUSVP,VP_PHONE,VP_DATE,BRANCH,
    PRIORITY,STATUS1,STATUS2 FROM CHANGE_CONTROL_ADMIN a
    INNER JOIN CHANGE_CONTROL_USER b ON a.CHANGE_CTRL_ID
    = b.CHANGE_CTRL_ID WHERE UPPER(REQUESTOR_NAME) LIKE ?
    AND DEPT = NVL(?, DEPT) --> this will assign the current row value to DEPT if it is null and will achieve what you are looking for
    ORDER BY AID;
    >
    So this is in my Java servlet coded like so, but I am
    pulling the DEPT value from a dropdown menu item list
    and setting that string value = to the corresponding
    dept. Works great! Except for when/if someone left
    the department select menu to the default, which is
    "" or null.
    So I'm wondering, is there a way to tweak the PL/SQL
    statement so that "AND DEPT = ?" is bypassed if the
    value is null?
    How would that look?
    Any help is appreciated!
    Thanks!

Maybe you are looking for