-
Expression help: If X = 1 then do the following…
Hey there-
I am working on a tutorial on expression controls but the control called Checkbox Control is hard to demonstrate practically. It uses a binary value system of off or on, which is really 0 or 1. Now there are some effects and propertues that use this sytem (such as the property in the fractal noise effect called invert), but animating that propery isn’t a common thing for people to do.
Since the system uses 0 or 1, I was thinking of demonstrating an expression like – If X = 0 then do this, if X = 1 do this.
So how do I write an If then Statement?
To set up x properly, I know that I need to write this
x = thisComp.layer(“Null 2”).effect(“Checkbox Control”)(“Checkbox”);
after that, I’m lost. I can figure out how to write the part about what should happen, I just don;t know how to write if X = 0 do this, if X = 1 do that.
Thanks.
Aharon
—————————————-
Aharon Rabinowitz
aharon(AT)yahoo(DOT)com
http://www.allbetsareoff.com
—————————————-
Creative Cow Master Series DVD
particleIllusion Fusion Volume 1
available @ http://www.pIllusionFusion.com