Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions else If statment is acting weird

  • else If statment is acting weird

    Posted by Assaf Goldlust on June 14, 2017 at 7:22 pm

    i encountered one frustrating problem.
    i tried to else if statement in the following matter.
    OP=loopOut(“pingpong”)
    Blue=comp(“Animation”).layer(“Blue Line”).content(“Trim Paths 1”).end;

    if (Blue==18){OP}else{0}

    the bothersome part start when the Statement is treating the condition as false. even tough this Blue line is actually qual to 18.

    i started to play around with it, the moment i changed the “==” to “>” its suddenly worked as it should,

    any ideas what the hack is going on? i just cant seem to figure this out, thanks.

    Dan Ebberts replied 8 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    June 15, 2017 at 12:45 am

    My guess is that Blue may not be exactly 18. It might appear as 18 in the UI but actually be 18.00001 or something similar.

    Dan

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