-
if/else in an array
I have 2 slider values “h” and “a” and a range of values in an array “i”.
I would like to check if the slider values are included in the array.What am I missing here?
Stay safe,
Craigh = thisComp.layer("CONTROLLER").effect("Home")("Slider");
a = thisComp.layer("CONTROLLER").effect("Away")("Slider");
i = [1, 6, 11, 12, 16, 17, 20, 21, 22, 23, 25, 26, 27, 28, 30, 32];if ( h == i ) {
100
}
else if ( a == i ) {
100
}
else 0;