Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions ExtendScript AE: Interpret all user input text as if it were lowercase in an “edittext” box?

  • ExtendScript AE: Interpret all user input text as if it were lowercase in an “edittext” box?

    Posted by Andy Troz on August 7, 2013 at 7:09 pm

    Hello again!

    I’ve been having issues with strings not triggering code in a “edittext” box because a user types “Test” instead of “test”. Is there anyway to tell the “edittext” box to read everything as if it were lowercase?

    Best,
    Andy.

    Andy Troz replied 13 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 7, 2013 at 7:16 pm

    Sure. For example, if you have the user’s text in a variable, you could do it like this:

    if (userText.toLowerCase() == “test”){
    (do stuff)
    }

    Dan

  • Andy Troz

    August 7, 2013 at 7:38 pm

    Genius! Thank you so much!

    Best,
    Andy.

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