If another condition

I'm creating a slideshow based on of Paul Trani

Host variables and Conditions to edge - YouTube

I have the operation of the slideshow, photo meter operation.

Problem; I try to toggle the visibility of the text when certain images become visible. Then... on my stage, creating complete, I have this...


var numOfPhotos = 11;
imageCount var = 1;

sym.showPhoto = function (photoDirection) {}

imageCount = imageCount + photoDirection;

Located in a loop
If (imageCount > numOfPhotos) {imageCount = 1};
If (imageCount < 1) {imageCount = numOfPhotos};

SYM.$("textCount").html (imageCount);

SYM. $("mainPhoto") .attr ("src", "images/photo_" + imageCount + ".png");

};

I do not know how to properly encode a line as the "mainPhoto" sources when its 'src' attribute is 'picture_1 '. I'm also not sure if this code should be to a click on a button or on the stage, included in the code above.

Thanks for any help!

so if you want to display the text on the image 11 then add this to your function

if(imageCount == 11) {}

SYM.$("textCount"). Show();  If you've hidden

SYM.$("textCount").html (imageCount);

} else {}

SYM.$("textCount"). Hide();

};

Tags: Edge Animate

Similar Questions

  • RETURN in IF clause... ANOTHER Condition in a PL/SQL block

    Hello

    Could you please explain to me the importance of a RETURN Clause in CASE... ANOTHER Condition in a PL/SQL block with
    an example.

    Concerning
    Nakul.V

    Hello

    Allowed RETURN clause out the block. For more information, you can see [using a RETURN statement | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/subprograms.htm#sthref1683]

    SET SERVEROUTPUT ON
    BEGIN
        IF 1 = 1 THEN
            dbms_output.put_line('Before return');
            RETURN;
        ELSE
            dbms_output.put_line('Else');
        END IF;
        dbms_output.put_line('After if');
    END;
    /
    
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    Connected as hr
    
    SQL>
    SQL> BEGIN
      2      IF 1 = 1 THEN
      3          dbms_output.put_line('Before return');
      4          RETURN;
      5      ELSE
      6          dbms_output.put_line('Else');
      7      END IF;
      8      dbms_output.put_line('After if');
      9  END;
     10  /
    
    Before return
    
    PL/SQL procedure successfully completed
    
    SQL> 
    

    Kind regards

    Published by: Walter Fernández on December 12, 2008 09:41 - added output

    Published by: Walter Fernández on December 12, 2008 09:43 - Add URL...

  • How to get if THEN ELSE another condition table

    Hi eveybody,.
    I have a situation and I need your advice guys.
    I apply if THEN ELSE condition in PL/SQL from another table. I do the merger in tableA that will run IF Column1 in tableC = Y.
    Ex: Tablec has three columns: source, dest, condition. Condition IF = Y in tableC, then merge into tableA use (Sql query in table C source selection) B.

    Please let me know how to get the condition = Y of table C.
    Condition IF = Y for each source in C, then fusion will happen for this source.

    Please provide your comments and your responses.
    I'd really appreciate your comments and your responses.
    Thank you very much.

    user13426784 wrote:
    DB link is passed as parameter in MS and we need to check the status for this link db to TableC.

    select   status
      into  v_status
      from  tableC
      where db_link = v_source;
    if v_status = 'Y'
      then
        EXECUTE IMMEDIATE 'MERGE INTO tableA A USING
    (select  from tableA@' || v_source || ')B
    when matched insert
    when not matched update';
    end if;
    

    SY.

  • Can we have another condition to the rule set (business rules)

    can we have condition ifElse in the set of rules?


    Thank you

    There is no IfElse in the rule set.

    If you require an If else, write 2 different rules:
    (1) with the positive test condition.
    (2) with the negative test condition.

    Oracle Business Rules follow Pattern Matching, Rete algorithm, not mistake for a procedural language built IfElse.

    --
    Mark recognition appropriate as useful or appropriate response, if your problem is resolved.

  • Update for KB2686827 security update can update. Error Msg: software update does not apply, or is blocked by another condition on your computer?

    I try to install the update of security KB2686827For Microsoft .net 4 on xpx86.  When I try to install it, I got several error messages: error 66A and others.  I when through the repair process and nothing helped.  I finally did remove it Mircosoft. NET 4 and did the initial installation, as indicated by the process of Microsoft site troubled shoot.

    After you follow the steps, I'm still not able to update:

    Follow the instructions in the article if you need help with the update.  http://support.Microsoft.com/kb/2686827

  • Smart playlists: condition album randomly?

    Hello!

    Since the update to Itunes 12.4.0.119, I have a problem with my smart playlist:

    I use a list of smart playlist to fill my ipod with random albums with a maximum of MB.

    But since I've updated, it added songs and albums together in the playlist.

    Here is a screenshot of smart playlist of the conditions:

    I don't know if cela a bug in the current version, or they just added another condition for the albums (which I couldn't find yet).

    Thanks for any help!

    Looking at the previous version I can't find an option to include entire albums it is.

    TT2

  • Evaluate several conditions.

    Hello

    I have three sets of routine developed in LabVIEW. I need to run these blocks when certain condition is met, for example,

    If condition 1 is true

    run block 1

    Otherwise, if condition 2 is true

    run block 2

    Another condition 3 is true

    run block 3

    Inputs and outputs are similar in each block. I was hoping to use the state machine architecture but still don't no idea how to do it.

    Kind regards.

    Your problem may be treated with a triply nested case structure.  Evaluate the Condition 1.  The real is "Execute Block 1".  The case of wrong is another matter structure, evaluate Condition 2, True = Execute Block 2, False = another structure of matter, assess the Condition 3, Execute Block 3 = True, False = do nothing.

    If you want to do this in a Machine States, you can proceed as follows: set the following States - 1 evaluate, run 1, review 2, run 2, released 3, run 3.  The State 1 assess don't 'value 1' and if it is true, call State run 1, otherwise it calls State evaluate 2.  You fill in the rest.  Note that you should probably have another State, 'Continue', all the States enforcement (and the wrong case to assess 3) call when they are made, so you don't "stuck".  On the other hand, if the state machine is a Subvi, you could just output (which is another "Pseudostate").

    Bob Schor

  • Conditional text in Table - problems with setting the line height

    Hey there,

    I'm German, but I try to express my problem in English as I can. Not always easy with different menu names. Hope you get what I mean! :-)

    As you can see in my attached screenshot, I placed the text in a table.

    Text height is set: minimum 1.5... so it adapts to the amount of text.

    That's what I want - it should adjust the height of the conditional text marked/s.

    It always adjusts the height when I blind on the first line lines oder between (for example line 2 + 3 4).

    But if I want to blind on the last lines, there is a number at the end and an extra empty line with #.

    I know the # means hidden following text, but why it works with the red/green text.

    There are also some hidden text (green), but the brand # is just after the last word - not in a new line.

    Does anyone have a solution for this?

    Thanks in advance!

    Screenshot_conditional_text.png

    So far, it's ok. A sign of the end of a text paragraph forces a new line.

    To change, do the following:

    For each condition, you need another condition for the paragraph sign that comes immediately after the condition. Not after each paragraph of a condition, but at the end of each consecutive numbers of the paragraphs of the same condition.

    So in your third example you will need more of two conditions:

    1. one for the paragraph at the end of the condition «meaasurements» sign

    2. one for the sign of paragraph at the end of the condition 'price 2 '.

    Whenever you perform other invisible conditions, you must also disable the new conditions that sign a single control paragraph.

    See the following screenshots:

    Uwe

  • IF ELSE condition in the ODI package using

    Hello

    I want to use if condition in package ODI.
    My exact requirement is that if a column in a table has a certain value, the value "XYZ" only then I must go forward in the case otherwise I do not want to run the workflow of the entire package.
    I can get the count in a variable through count (*) where the value = "XYZ". But how to use this value to go further (if it's not 0 then flow should start on the other end).

    Thank you
    Sudeep

    Sudeep salvation,

    You have what we call 'Evaluate' type of variable in ODI to implement so, another condition.

    You must drag and drop the same variable for your package, make it as variable Evaluate (check in the Properties tab below) and that verification of the status of 'superior' to 0, the OK should do the extra step.

    Thank you
    Guru

  • need help for a conditional query

    guys this is just. as an extension of this post that Frank was helping me. IM reposting because my needs change slightly and im having a hell of a time trying to change the query.
    Here are the previous post.
    need help with query can find data back please help.
    CREATE TABLE "FGL"
      (
        "FGL_GRNT_CODE" VARCHAR2(60),
        "FGL_FUND_CODE" VARCHAR2(60),
        "FGL_ACCT_CODE" VARCHAR2(60),
        "FGL_ORGN_CODE" VARCHAR2(60),
        "FGL_PROG_CODE" VARCHAR2(60),
        "FGL_GRNT_YEAR" VARCHAR2(60),
        "FGL_PERIOD"    VARCHAR2(60),
        "FGL_BUDGET"    VARCHAR2(60)
      )
    data
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','00','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7200','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7600','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','11','2','600');
     
     
    I need to find the year of greater subsidy for the granting by a period setting.
    Once I found the great year, I need to check the value of the period 14 this grant for the previous year and add it to the amount of the budget for this grant. However if there is an entry in the biggest year for period 00 so I need to ignore the period 14 of the previous year and the current calculation period + (current period - more great year 00)

    hope that makes sense, so in other words, with the new data above. If I asking me a second period of the grant year 11. I'd end up with $800

    because the greatest year is 11 it contains one point 0 with $ 400, so my total should be
    amount of period $2,600
    period $0 400 - period $2 600 = $200

    600 + 200 = $800

    If I have question period 1 grant 360055 I'd end up just with 800 grnt year 10.

    I tried to edit this query you have provided me with no luck. I tried for several embarrassed day but I'm saying I can just do what im trying to do.
    can you please help me.


    Here's the query provided by frank kulash who graciously put it together for me.
    WITH     got_greatest_year     AS
    (
         SELECT     fgl.*     -- or whatever columns are needed
         ,     MAX ( CASE 
                     WHEN  fgl_period = :given_period 
                     THEN  fgl_grnt_year
                    END
                  ) OVER ()     AS greatest_year
         FROM     fgl
    )
    SELECT     SUM (fgl_budget)     AS total_budget     -- or SELECT *
    FROM     got_greatest_year
    WHERE     (     fgl_grnt_year     = greatest_year
         AND     fgl_period     = :given_period
         )
    OR     (     fgl_grnt_year     = greatest_year - 1
         AND     fgl_period     = 14
         )
    ;
    Miguel

    Hi, Miguel.

    You are waying that when larger year who has: given_period also a period = '00' (or '0', or whatever it is you want to use), then you want to double the budget of the given_period (subtract the '00' budget and do not count '14' year pevious)? If so, add another condition to the CASE statement that decides what you've summarized:

    WITH     got_greatest_year     AS
    (
         SELECT       TO_NUMBER (fgl_grnt_year)     AS grnt_year
         ,       fgl_period
         ,       TO_NUMBER (fgl_budget)     AS budget
         ,       MAX ( CASE
                       WHEN  fgl_period = :given_period
                       THEN  TO_NUMBER (fgl_grnt_year)
                      END
                    ) OVER ()     AS greatest_year
         FROM       fgl
    )
    ,     got_cnt_00     AS
    (
         SELECT     grnt_year
         ,     fgl_period
         ,     budget
         ,     greatest_year
         ,     COUNT ( CASE
                       WHEN  grnt_year     = greatest_year
                       AND       fgl_period     = '00'
                       THEN  1
                         END
                    ) OVER ()          AS cnt_00
         FROM    got_greatest_year
    )
    SELECT       SUM ( CASE
                        WHEN  grnt_year     = greatest_year                    -- New
                  AND       fgl_period     = :given_period                    -- New
                  AND       cnt_00     > 0            THEN  budget * 2     -- New
                        WHEN  grnt_year     = greatest_year
                  AND       fgl_period     = :given_period       THEN  budget
                        WHEN  grnt_year     = greatest_year
                  AND       fgl_period     = '00'            THEN -budget
                        WHEN  grnt_year     = greatest_year - 1
                  AND       fgl_period     = '14'
                  AND       cnt_00     = 0            THEN  budget
                    END
               )          AS total_budget
    FROM       got_cnt_00
    ;
    

    You will notice it is the same as the previous query, I posted, with the exception of 3 lines marked 'new '.

  • Conditional statement with calendar control

    Hello

    I need to set a condition on a calendar field (anticipated date) that requires users to choose only certain date in the calendar. Otherwise, it will give them a message and clear the calendar. Also, I need to set up another condition with "in between" but I do not know how to configure them.

    THANK YOU VERY MUCH FOR YOUR HELP!

    J

    For the first, you could do (in formcalc):

    If (Date2Num ($.formattedValue, "DD/MM/YY") <  41123="" and="" date2num($.formattedvalue,="" "dd/mm/yy")=""> <> 0) then

    xfa.host.messageBox ("your arrival date cannot be before the 08/03/12", "My message", 1).

    $ = ""

    endif

    You must make sure to only set the JJ/MM/AA entry model or what you use in the code above so that it corresponds.

    For the second, you could do:

    If (Date2Num ($.formattedValue, "DD/MM/YY") 41130 > and Date2Num ($.formattedValue, "DD/MM/YY") <> 0) then

    xfa.host.messageBox ("your departure date cannot be after 12/10/08", "My message", 1).

    $ = ""

    endif

  • condition on field which may not exist

    Hello

    There is a report that contains the records of transactions and receipts. The entry is from different custom folders, and it is possible that there are details of a transaction, but no details from a reception in a line because there is no receipt.

    An I am to set the new leaves should have a condition that the leaf only include rows where revenue was last updated OR the update of the transaction is equal to what is given in the parameter.

    Problem: I get an error of illegal use of conditions and calculations that cannot be resolved in the query. If I set a condition that the update of revenue is equal to the parameter AND ANOTHER condition for update operations, there is no problem. As soon as I combine the two in a State (I have finally to do because I need the OR statement), I get an error.

    My gut feeling is that because there is not always an acknowledgment (or sometimes there is a reception with no transaction), the condition cannot be resolved.

    If it is, in fact, the case, is it possible that I can get around this? They are not so eager to have two sheets separate (one for the update of the transaction) and a separate one for the update of revenue.

    Thank you.
    Leah

    The user requests another sheet where I am to display all records where the transaction does not have a reception applied. I'm running into the same problem where I can not get the results I want from a folder that does not exist. Line by line, I get 0 in a field of amount calculated using the NVL function if there is no reception in the row in the report, but if I set a condition on this basis, the report is not correct. Can someone help me on this?

    Published by: user476771 on October 11, 2010 04:49

    In case anyone follows this thread...
    This last problem, I simply resolved. I had used the NVL on the ground (detail), but the report is the SUM of the field. When I changed the function NVL on the SUM of the field (i.e., the field in the report itself), it worked.

    Now, I'll try to review the other sheet with the last updated field transactions and revenues.
    Thanks to all who watched this last problem.
    Leah

    Published by: user476771 on October 11, 2010 05:15

    Hi LEA
    It sounds as if there is an outer join defined between the operations and received files, which would be quite normal.

    However, the problem here is that SQL, no discoverer, does not allow the use of a statement of GOLD when an Outer join is used. You can also create CONDITIONS when a RC is in use. The error is ORA-01719

    Have a look here: http://techonthenet.com/oracle/errors/ora01719.php

    This link also gives you an indication on how to solve your problem, in that you have to use a UNION query that will overcome the use of outer join. You can use it in a view or a custom folder.

    Hope this helps
    Best wishes
    Michael

  • Conditional statement and a counter

    Hello-

    I'm doing a button than if you hit 4 times he plays a clip. The 5th hit - I want her to play a different clip. After the 5th success - it will reset and the process would start over. The script is in a keyframe and video clips are played with functions.

    playButton_btn.addEventListener (MouseEvent.CLICK, goButton1);

    function goButton1(evt:MouseEvent):void
    {
    runningMan_mc.gotoAndPlay (2);
    }

    As I mentioned earlier, the increase will be the first line of the function.  For what you wrote, I got the impression that you wanted to do different somethings, click on the 4th and 5th click, not 1 in 3 clicks.  The code that show you would be the first scenario to play four times until the 5th click.  If you don't want that you need to have another conditional to only play one on the 4th click.  You have also said to reset the counter, should be included as well...

    var number: number = 1;

    function goButton1(evt:MouseEvent):void
    {

    Count ++;

    If (count 4 >). {

    runningMan2_mc.gotoAndPlay (2);

    Count = 0;

         } else {

    runningMan_mc.gotoAndPlay (2);

    }
    }

    playButton_btn.addEventListener (MouseEvent.CLICK, goButton1);

  • If Condition + gotoAndPlay help

    I'll put up a flash ad and I want to add a condition that shows a scene for a situation and another scene for all the rest. The State is part of the URL, the ad is on. For example

    If {(listings.htm)
    }
    gotoAndPlay ("scene 1", 1);

    Is this fair? Also, what would be the next part? Since I want to stage 2 to play for all URLS that does not listings.htm in it, I guess it would be IF another condition or would it be an ELSE?

    You will need:

    If {(listings.htm)
    gotoAndPlay ("scene 1", 1);
    } else {}
    gotoAndPlay ("scene 2", 1);
    }

  • Combining a built-in condition and PL/SQL

    Research at the following post about error combining terms is absurd:

    Button nesting conditions

    I only want to show a region when there is no validation error AND combine this with another condition of PL/SQL. APEX knows that a validation error is present, as it is built in, but I can't combine the two. Can someone shed some light on what the API call is via PL/SQL to combine both please?

    Certainly, I could fill a hidden element and use it, but my goal is to reduce complexity when it is possible and this looks like something I could do to add in one shot by a validation of PL/SQL.

    BTW, this customer is on APEX v2.

    Phil

    Phil:

    You can use the package variable "wwv_flow.g_inline_validation_error_cnt" to get the number of line of validation errors.

    CITY

Maybe you are looking for