ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

What's wrong with this syntax?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sean Jenkinson
What's wrong with this syntax?
on Jul 6, 2020 at 8:59:32 am


I'm following a tutorial in 'The Power of Expressions' about optimisation in expressions and I created the following three lines (as directed by the text in the book):

var Variable1 = 10;
let Variable2 = 10;
const Variable3 = 10;

After Effects has disabled this expression because of a syntax error on line 2, which it claims is missing an expected ';'. I've checked and rechecked the text in the book but I can't see a difference.

What am I not understanding about this?

I'm using AE CC2020.

Many thanks.

Return to posts index

Scott McGee
Re: What's wrong with this syntax?
on Jul 7, 2020 at 7:58:09 am

Sounds like you are either using an old version of after effects or haven't turned off Legacy in your expression settings in project settings.

Return to posts index

Sean Jenkinson
Re: What's wrong with this syntax?
on Jul 7, 2020 at 8:41:00 am

That's solved it. Many thanks.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 All Rights Reserved