ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud Debate

How to keep a value in a if/else condition

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


olivier turcotteHow to keep a value in a if/else condition
by on Apr 18, 2012 at 12:45:07 pm

Hi,

I'm a newbie in after effect and I'm playing with expressions. I want a value to be updates if the condition is meet, but to keep the value if not.
Thanks

if (transform.position[2] > -1) {
-keep the value. (do nothing)
} else {
text.animator("Animator 1").selector("Range Selector 1").offset
};



Posts IndexRead Thread


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]