How do I create a conditional statement with multiple values
I'm trying to create the following conditional statement:
if(thisComp.layer("Controls").effect("First Slider Control")("Slider")==61
&&
if(thisComp.layer("Controls").effect("Second Slider Control")("Slider")==3
&&
if(thisComp.layer("Controls").effect("Third Slider Control")("Slider")==24)100 else 0;
I'm applying the above expression to another layer's transparency property.
First of all, is there a way to simplify the above expression?
And now to my main question:
Is there a way to include multiple values into the expression above?
For example:
I want to be able to have the layers transparency be 100 if the "Second Slider Control" value is either "1,2,3,4 or 5" and "Third Slider Control" value is either 24,30,32 or 38.
Here are some notes:
If the "First Slider Control" value is 61
and
If the "Second Slider Control" value is either 1, 2, 3, 4 or 5
and
If the "Third Slider Control" value is either 24, 30, 32 or 38
Then the layer transparency is set to 100
Any other value on any of the 3 slider controls will set the layer transparency to 0
I've been trying to do this and can't seem to figure out the right way to do it.