• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

219

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

LEGEND , Mar 20, 2021 Mar 20, 2021

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

 

Mylenium

Votes

Translate

Translate
LEGEND ,
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

Votes

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