Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions If / else – source text – Expression

  • Aniello Ferrone

    September 25, 2019 at 3:14 pm

    I solved myself, like so
    Thank you so much

    if (thisComp.layer("Text").text.sourceText.length == 0){
    0;
    } else {
    100;
    };

    Aniello Ferrone
    Viral Video Editor
    http://www.fanpage.it

  • Andrei Popa

    September 25, 2019 at 3:30 pm

    You could write it more beautiful like this:
    ((thisComp.layer("Text").text.sourceText =="") ? 0 : 100

    Andrei
    My Envato portfolio.

  • Aniello Ferrone

    September 25, 2019 at 3:32 pm

    Wow, Thank you so much!

    Aniello Ferrone
    Viral Video Editor
    http://www.fanpage.it

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