-
simple if then statement based on character length
Hi everyone, I am sure the problem is only with the way I wrote this. I have done and modified countless expressions over the years, but this one isn’t working.
I want my if then statement to change position by 100 pixels based on character length in a text, so here is my expression in the position property of a different layer.
a=thisComp.layer(“text”).text.sourceText.length
if (a>32),[960,540] else [960, 640]
thanks so much for any help.
To further explain the reasoning, I plan on making my text a paragraph text with a limited length horizontally, so that once the text starts appearing on the second line, the expression will move the other layer down, basically keeping this layer a certain amount of pixels lower than the text. I think there might even be better way to create this expression based on sourcerectattime for the height, but Im not sure how.
Thank you