Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Conditional expression in After Effect CC2021 versión 18.01 bulid 1

New Here ,
Mar 20, 2021 Mar 20, 2021

Copy link to clipboard

Copied

I have this problem, when I write the expression "if (thisComp.layer (" Diamonds / Module 09 - Expressions 1.ai "). transform.opacity == 100) [0] else [100]" gives me the following error "unexpected token 'else' ".
I have checked the expression and it is correctly written. Has anyone else had these kinds of problems?
TOPICS
Error or problem, Expressions, Scripting

Views

51

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , Mar 20, 2021 Mar 20, 2021
No, it's not written correctly. Conditionals use sway braces {}, not square brackets []. Mylenium

Likes

Translate

Translate
Adobe Community Professional ,
Mar 20, 2021 Mar 20, 2021

Copy link to clipboard

Copied

LATEST

No, it's not written correctly. Conditionals use sway braces {}, not square brackets [].

 

Mylenium

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines