How to do several expressions of time?

I understand how two expressions with time:

if (time < 1){
     //expression x here
}
else{
     //expression y here
}

But what happens if I have more expressions and want to run if between specific times, for example, I tried:

if(time = 1,2){
     //expression x here
}
else if (time = 3,4){
     //expression y here
}

else if (time = 5,6){
     //expression z here
}


But it does not work. Help much appreciated ~

Well, you might want to read about how JavaScript works at a very general level. Your code is just doesn't make any sense at all.

  • in the programming of the point is the digital separator, not the comma
  • = is an assignment operator, not a logical operator
  • a segment has a beginning and a beginning, but you set only a specific time in your conditional statements
  • you don't have any help {else}

After all this, you must rewrite it completely. Example:

If (time > = 0 & times)<>

Else if (time > = 1 & times)<>

else {}

Mylenium

Tags: After Effects

Similar Questions

  • How can I disable express look? When I try to mail foreword it gives me an error message every time.

    How can I disable express look?  When I try to foreword post it givesme an error each time.   Thank you for the help

    Control Panel | Add/Remove programs. Add/Remove Windows components. Clear the Outlook Express check box.
     
    If you still have questions, please tell us what e-mail program, you use and post the full error message.
  • How to share several files at the same time?

    iI am trying to share a number of edited files and sending one at a time takes too much time. How to share several files at the same time?

    Yes, you can select and send/share several files at once.

    Start https://cloud.acrobat.com/send. Click Select files to send and then follow the instructions in file selection. If you want to add more files, simply click on add files:

    You can include up to 50 files by "transaction".

  • Help, please... I need to know how to crop my video segments?  I also need to know how to make several clips to run at the same time by dividing the screens?  How to fade a clip?

    Help, please... I need to know how to crop my video segments?  I also need to know how to make several clips to run at the same time by dividing the screens?  How to fade a clip?

    I watched the video tutorials.  I need to know also how to add additional video tracks to my screen.  Any help please?

  • How to plot two variables when neither are expressed in time?

    I know how to trace a variable against time, but how to plot two variables when neither one of them are time against each other. For example if I want to draw Let's force against remote what is the best approach to use?

    Thank you.

    Use an XY Chart. Use context-sensitive help to see the expected data type and refer to the examples. Consider what follows, don't forget to rename the scale labels and name:

  • FCP 7 How to display several takes both

    I'm running FCP 7 on a Macbook Pro with OS 10.10. Trying to figure out how to display several takes of the video on my calendar running at the same time. Mounting a show of live music from four cameras simultaneously turned and want to choose between shots while seeing the four outlets. Is this possible?

    Multiclip editing:

    https://documentation.Apple.com/en/FinalCutPro/UserManual/index.html#chapter=42% 26section = 12% 26tasks = true

    MtD

  • How to transfer several photos from one folder to another

    I want to delete a number of photos in my folder and then transfer some blocks of them to other folders to better organize. I know how to remove one at a time, but I don't know how to highlight a bunch of them for moving.  They are coming up with numbers, like 079, 080, 081 etc but not on a list where I can highlight.  I also want to do the same with several short videos I have.  By the way, I have transferred all this media from my iphone / ipad and everything came automatically - that is why I need now to separate and organize especially if I want to send copies to parents and friends.

    I want to delete a number of photos in my folder and then transfer some blocks of them to other folders to better organize. I know how to remove one at a time, but I don't know how to highlight a bunch of them for moving.  They are coming up with numbers, like 079, 080, 081 etc but not on a list where I can highlight.  I also want to do the same with several short videos I have.  By the way, I have transferred all this media from my iphone / ipad and everything came automatically - that is why I need now to separate and organize especially if I want to send copies to parents and friends.

    ==========================================
    You can select multiple by holding your CTRL key while left
    by clicking on the thumbs or file names.

    You can also select groups of photos by selecting one...
    While holding down your shift key and select another further
    fixing the list. All photos between the two selected will be
    chosen too.

    Move photos from one folder to another.

    With the thumbnail selected... type... CTRL + x. sa is the
    keyboard shortcut for "cut". Selected thumbnails are
    bland and appear grey.

    Open the folder that you want to move the photos to, and then type...
    CTRL + V. sa is the keyboard shortcut for paste.

  • How to add or subtract 2 times, calculation with the calculator of windows 7?

    For example:

    I want to add 2 different times as follows. More time is with the format hours: Minutes: seconds.

    H MM SS

    01:50:31

    + 2:20:30

    -------------------

    04:11:01

    How to perform this calculation of time with Windows 7 or any other Calculator calculator in Windows 7.

    Response.

    In your example:

    First add the hours, the minutes and the dry separately

    Hours = 1 + 2 = 3

    MN = 50 + 20 = 70

    Seconds = 31 + 30 = 61

    Now, to calculate whole minutes because of the second column:

    61 seconds/60 = 1.016 mins (approx.)

    Ignore the bits after the comma, and add whole minutes in the minutes column:

    MN = 70 + 1 = 71

    Calculate the seconds remaining:

    61. 60 = 1 second.

    Now, calculate hours because of the minutes column:

    71minutes/60 = 1.183 hours (approx.)

    Ignore the bits after the comma and add hours to the column of the hours:

    Hours = 3 + 1 = 4

    Calculate the remaining minutes:

    71 60 = 11 min.

    That is why total is:

    4 hours, 11 minutes, 1 second.

    The calculator is not a huge help to make these kinds of calculations because it works in decimal which means he cannot directly calculate/convert seconds/minutes/hours located in several of the early 1960s. If you had a spreadsheet like Excel you could set up (with a little work) to do this kind of thing.

  • How to treat several Photos with removal of Haze Auto

    Win7 64 bit

    Photoshop Elements 14

    Hello:

    How to treat several photos with removal of haze self at the same time? And how can I process several photos with auto shake reduction at the same time?

    If this can be done with actions, is there an action that can be downloaded to achieve?

    Thank you

    r398tow wrote:

    Win7 64 bit

    Photoshop Elements 14

    Hello:

    How to treat several photos with removal of haze self at the same time? And how can I process several photos with auto shake reduction at the same time?

    If this can be done with actions, is there an action that can be downloaded to achieve?

    Thank you

    Unfortunately, you can only batch with commands in the option "treat multiple files" of the editor or the 'Export' one in the Organizer. Action would be able to combine several orders for a single file, but do not use the command given on a lot. You would need a script for this.

    The two new orders to 14 elements (haze removal and shake reduction) can be very effective, but they can also produce strange artifacts... Their use in the batch may be undesirable.

    I recommend the following solution to improve lots of files needing to increase the local contrast:

    If you work with raw files, open a small batch of files from the Organizer in the ACR module. Use the cursor to 'clarity' to all files in the batch and add some sharpness.

    If you work with JPEG files, use the editor and choose "open in camera raw" option for your batch chosen files from the file.

    Who should provide a good improvement to most of your files. You can use two new orders than in the pictures with the specific defects:

    -shake (common with telephoto lenses) removal

    -mist removal (not only haze, but images softened with "flare")

  • How to merge several layers in one without destroying the layers of origin?

    How to merge several layers in one without destroying the layers of origin?

    joelb2995629 wrote:

    How to merge several layers in one without destroying the layers of origin?

    The solution is a very useful shortcut, but requires a bit of dexterity.

    Of is it: Ctrl + Alt + Shift + e. (Yes, 4 keys at the same time).

    This creates a new layer that is the fusion of visible layers.

    To be on the top layer and don't have ensure that active useful layers.

  • How to load several SWF my main flash file?

    I use the following code

    In stock for 1 frame:

    ( var myrequest:URLRequest =new URLRequest ()'A.swf'();
    ( var myloader:Loader =new Loader()();
    myLoader. load () myrequest ();

    img1. addEventListener () MouseEvent. ( CLICK, button click();

    ( function button click ()event: MouseEvent ():void{ }
    Stadium. addChild () myloader ();
    }

    img1.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);

    function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void

    {

    gotoAndStop (13).

    }

    In action to frame 13: (img2 is another button)

    img2.addEventListener (MouseEvent.CLICK, unloadFunction);

    function unloadFunction(event:Event):void {}

    stage.removeChild (myloader);

    }

    This code works perfectly fine. My only problem is how to make several swf loaded. When I tried to copy and paste the same code for the another swf, but the following errors appear. I'm sure theres a way to have several sovereign wealth funds (btw the multiple SWFS will be bound to different frames).

    Scene 1, Layer 'PAGES!', frame 2, line 7 1021: duplicate function definition.

    Scene 1, Layer 'PAGES!', frame 2, line 2 1151: there is a conflict with the myloader definition in the internal namespace.

    Scene 1, Layer 'PAGES!', frame 2, line 1 1151: there is a conflict with myrequest definition in the internal namespace.

    Can anyone help me please with this. Thank you

    I have to get a new keyboard one day... it ignores things...  That sentence was supposed to have read "You can not set the same variable name or function more than once in a file" If you don't know not what that means, read it a few times because it's as simple as possible.

    In regards to the other code, try and see what you get... No need to wait for me to try something yourself and see.

  • How to create several users at once.

    Hello experts.

    I need to create many users to the Administration tool.

    But there too many times.

    Please let me know how to create several users at once.

    If you have 1000 + users you should not use the SPR, take a look at the authentication of the external table:

    http://obieeblog.WordPress.com/2009/06/18/OBIEE-security-enforcement-%E2%80%93-external-database-table-authorization/

    concerning

    John
    http://obiee101.blogspot.com/

  • How can implement you not with Tim Capsule and AirPort their simulation on the iMac?

    Hello

    How can implement you not with Time Capsule and AirPort their simulation on the iMac?

    I don't know what you're asking.

    AirPort Extreme is a wireless router.

    A Time Capsule airport is an AirPort Extreme with a built-in hard drive for data storage.

    An iMac is a Mac computer.

    An iMac is not a wireless router, so he is unable to perform the functions of a wireless router.

  • How to combine several libraries in a library complete?  And this new global all0 library can be an external hard drive?

    How to combine several libraries in a library complete?  And this new global all0 library can be an external hard drive?

    1. click here for more information.

    2. Yes, if this disk contains a partition image or the drive Mac OS Extended format.

    (142356)

  • How can I connect my Airport time capsule to my WiFi network so he just backup my Mac and not extend nor want to be a base station

    How do I connect/install my time capsule airport to my new WiFi network so she just backup my Mac and not to extend my WiFi or want to be a WiFi hotspot

    There is no way to connect a TC to a wifi network. It must be connected by ethernet to the main modem or to the router.

    I don't understand what you're asking...

    If you want that the backup more wireless computer... How the TC cannot work as Wifi hotspot... It's impossible.

Maybe you are looking for

  • Skype won't let me log on...

    Since today I started Skype and it performed an update. After that I had in my Skype screen and the icon of my activity was doing circles. I searched the web and I reinstalled Skype 3 times. With different versions. I deleted the shared.xml file in t

  • MapView problems after 2.0 update Momentics

    Hello, I am working on a prototype for an idea of the app I have and need to plan very much in the way that Foursquare manages the views of map locations. I've been led to believe that the native integration of cards required coding very little and n

  • Integration of content in search in OS6

    Hello world Has anyone tried integrate their content of unified Search Service?  I was checking the related document ( this and this and also the documentation of the API), but they seem to be incomplete.  Anyone has found a way to implement the acti

  • Add VNX LUN for ESX

    I am trying to add VNX LUN 4 to our production 4.0\ESXi ESX VMware environment 5.  Each logic unit number is 1024 GB - we want two 2 TB VMFS3 data warehouses.  In vCenter, I created the first 1024 GB data store.  Whentry to add a measure for the 2nd

  • I need to upgrade vCenter Server going 4.1 U2 to U3?

    I am running vSphere 4.1 2 update on my hosts.  I did not long just the major release of 4.0 to 4.1U2 (including the jump to 64 bit VC server).  Now, I see 3 update is out (I know I'm late).I'll have to uprgade Center VCDB/UMDB virtual server for thi