Skip to main content
walguin
Participant
March 20, 2021
Answered

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

  • March 20, 2021
  • 1 reply
  • 297 views
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?
This topic has been closed for replies.
Correct answer Mylenium

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

 

Mylenium

1 reply

Mylenium
MyleniumCorrect answer
Legend
March 20, 2021

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

 

Mylenium