-
3-way if/else?
Howdy folks,
Got this expression going…
Basically, an object changes to red (COLOR 4) if a certain variable is greater than 90 or if a different variable was less than 10. Otherwise, it’s blue (COLOR 1). No big deal. In the Fill/Color property of a rectangle shape, I have the following:
>
x=thisComp.layer(“GRAV percentage”).effect(“Numbers”)(“Value/Offset/Random Max”);
y=thisComp.layer(“PROB percentage”).effect(“Numbers”)(“Value/Offset/Random Max”);if (x>90 || y<10){thisComp.layer(“COLOR 4”).content(“Fill 1”).color;
}else{
thisComp.layer(“COLOR 1”).content(“Fill 1”).color}
>
But here’s what I’m hoping to find… I’d like the object to become yet another color, green for example, if x and y are yet another combination. Specifically, if x<10 and y>90, I’d like the object to go to a THIRD color.
Is there some sort of trumping “OR” statement out there?
thanks,
Tom
================================================
YOU can help save TimeSpace. Join the Chronos Protectorate!