Page 1 of 1

can the script detect length of the movie name?

Posted: 30 Aug 2019, 21:55
by fireheart2008
like how many characters , maybe something like

Code: Select all

{n.length}
I was thinking of abbreviating some ridiculously long names and a way of detecting them

Re: can the script detect length of the movie name?

Posted: 31 Aug 2019, 02:46
by kim
try this

Code: Select all

{n.length() > 50 ? n.acronym() : n}

Code: Select all

{n.length() > 50 ? n.acronym() : n}{' (' +  y + ')'}

Re: can the script detect length of the movie name?

Posted: 22 Aug 2020, 03:23
by jackmarison93
Thank you for sharing