Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions can we use 3 “if” value?

  • can we use 3 “if” value?

  • Ehsan Adham

    November 30, 2019 at 6:39 pm

    Hi everyone

    I used this command to say that if the position is less than 500 enter 500 if not 1000
    if (transform.xPosition <= 500) {500} else {1000}

    How can I do this?:
    If it is less than 500, set it to 0
    If it is between 5000 & 1000 it should be 1000
    else 1500

  • Dan Ebberts

    November 30, 2019 at 7:40 pm

    Like this I guess:


    if (transform.xPosition < 500)
    0
    else if (transform.xPosition >= 1000 && transform.xPosition <= 5000)
    1000
    else
    1500;

    Dan

Viewing 1 - 2 of 2 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy