So is your intention for the expression to accommodate all 16 permutations of multiple checkboxes selected or do you want it to work like radio buttons, where only one of the four options can be selected at a time? If it’s radio buttons, you’d be better off using a Dropdown Menu Control and an expression structured like this (I don’t think this is right, but I don’t really understand how it’s supposed to work):
menu = effect("Dropdown Menu Control")("Menu").value;
switch (menu){
case 1:
speedMultiplier = -5;
y = value[0];
x = value[1] + time * speedMultiplier;
break;
case 2:
speedMultiplier = 5;
y = value[0];
x = value[1] + time * speedMultiplier;
break;
case 3:
speedMultiplier = 5;
x = value[0];
y = value[1] + time * speedMultiplier;
break;
case 4:
speedMultiplier = -5;
x = value[0];
y = value[1] + time * speedMultiplier;
break;
default:
x = value[0];
y = value[1];
break;
}
[x,y]