Quantcast
Channel: Adobe Community : Popular Discussions - After Effects Expressions
Viewing all articles
Browse latest Browse all 47983

java or operator statement and expressions

$
0
0
So I tried to simplify some code this morning using the java or operator and it doesn't seem to work. It went something like this:
if ((time < 4) || (time > 10))}
val = aVariable}
else val=0;
What I end up with is zero until 4 but after 10 the val does not return to 0.

I hope this makes sense to somebody out there. I just went back to a stack of if else statements to solve the problem.

Thanks

Viewing all articles
Browse latest Browse all 47983

Trending Articles