-
Simple if/else statement
I’m having problems with if/else statements. (never done them before)
I want to turn on/off layers based on a sliders value. I have 7 layers and want only 1 layer visible at a time. When the null slides from 1-7 i need the appropriate layer to turn on and all others off (no fades, hard cut). My expression below unfortunately doesn’t round number to an integer either.
I’ve tried variations based around this:
null = thisComp.layer("Null: Controller").effect("LayerID")("Slider")if (null = 1){
[100];
}else{ [0]; }
any help is appreciated. thanks.