Copy link to clipboard
Copied
V = effect("Slider Control")("Slider");
if (V > 0) X = 100 else X = 0;
[X,X]
This is just about as simple as it gets but I get this error:
Error: Syntax error: Unexpected token else (And this is about line 2 obviously)
What? I could swear this is similar to what I've done before. Help me out!
Copy link to clipboard
Copied
Never mind, I got it. Curly brackets... {100} {0} or legacy ExtendScript in project settings.
Copy link to clipboard
Copied
Or:
X = (V > 0) ? 100 : 0;
Dan