Skip to main content
Participant
January 27, 2022
Question

Expressions

  • January 27, 2022
  • 1 reply
  • 186 views

Hello,

I have a text that needs to fit a box size, with 60 characters but if more them 60 characters will apply a character tracking.
I did a couple of tests: the character substr(0, 56) works, but when apply the style.setTracking(40) is not
I'm missing a command or a different syntax.
Appreciate any feedback!

 


test 1:
text.sourceText
if(text.sourceText)substr(0, 56);text.sourceText.style.setTracking(40);{

else{(text.sourceText)substr(0, 70);text.sourceText.style.setTracking(20)}

 

test 2:

text.sourceText.style.setTracking(20)

if (x.length <=20) style.setTracking(40)

else if (xlen<=22) {style.setTracking(10) && x}

This topic has been closed for replies.

1 reply

Mylenium
Legend
January 28, 2022

Apply the formatting via a text animator and of course clean up your syntax. There's a million typos and bad formatting in your code and none of it will aver work.

 

Mylenium