-
If Else with multi checkbox values
I’m try to use checkbox controller to place the position of a text line. There are 2 checkbox and depending on the combination of the 2 checked determines the position value. Only 4 possible placements. I currently don’t get an error on the expression, but it doesn’t work. What am I missing?
Thanks,
Scott
CTRL1 = effect("Show 1 Controller")("Checkbox"); value
CTRL2 = effect("Show 1 Controller")("Checkbox"); value
if ((CTRL1 == 1) && (CTRL2 ==1)) [960,540]
else if ((CTRL1 == 0) && (CTRL2 ==1)) [960,575]
else if ((CTRL1 == 1) && (CTRL2 ==0)) [960,550]
else if ((CTRL1 ==0) && (CTRL2==0)) [960,580] else [0,0];