layerNum = 1control = comp("compname").layer("layername").effect("Slider Control")("Slider");if(control == layerNum){value = 100;}else{value = 0;}