FORUMS: list search recent posts

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andy Troz
ExtendScript AE: Interpret all user input text as if it were lowercase in an "edittext" box?
on Aug 7, 2013 at 7:09:32 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.


Return to posts index

Dan Ebberts
Re: ExtendScript AE: Interpret all user input text as if it were lowercase in an "edittext" box?
on Aug 7, 2013 at 7:16:14 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



Return to posts index

Andy Troz
Re: ExtendScript AE: Interpret all user input text as if it were lowercase in an "edittext" box?
on Aug 7, 2013 at 7:38:34 pm

Genius! Thank you so much!

Best,
Andy.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]