Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions cannot get simple OR statement to work!

  • cannot get simple OR statement to work!

    Posted by Tom Gomez on February 5, 2022 at 6:39 pm

    Thanks in advance Expression Wizards. Simplest thing… can’t get it to work without syntax errors. If either of three checkboxes is checked, need opacity change. I have:

    a = comp(“USANA Ignition 2022 – Eng C – PH”).layer(“MASTER CONTROLS”).effect(“ENGLISH – PH”)(“Checkbox”).value;
    b = comp(“USANA Ignition 2022 – Eng C – PH”).layer(“MASTER CONTROLS”).effect(“ENGLISH – HK & SG”)(“Checkbox”).value;
    c = comp(“USANA Ignition 2022 – Eng C – PH”).layer(“MASTER CONTROLS”).effect(“ENGLISH – US CA ANZ”)(“Checkbox”).value;

    ((a || b || c)=1)? 100 : 0

    Filip Vandueren replied 4 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Tom Gomez

    February 5, 2022 at 7:41 pm

    Ok. Figured out.

    a || b || c ? 100 : 0

  • Filip Vandueren

    February 5, 2022 at 7:50 pm

    or:

    (a || b || c) == 1 …

    = sets a value, == checks for equality

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy