SIGN IN
::
SPONSORS
::
ADVERTISING
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
FEATURES
VIDEOS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
ADOBE AFTER EFFECTS:
Home
Forum
Basics
Expressions
Tutorials
Podcasts
AE Techniques
Creative Cloud Debate
FAQ
If statement only executes once - Expression problem
COW Forums
:
Adobe After Effects
FAQ
•
VIEW ALL
•
ADD A NEW POST
•
PRINT
Respond to this post
•
Return to posts index
•
Read entire thread
If statement only executes once - Expression problem
by
Jeo Greko
on Jul 10, 2012 at 5:47:19 pm
So I am trying to make an expression have an on and off duration, all my math is good as far as I can tell but one of the if conditions only runs once. If I duplicate the if it will work as many times as I copy it, any help is really appreciated.
t = time*24;
period=10;
holdTime=2;
loop=period+holdTime;
if(t>=loop) t=t-loop;
if(t/period>=1) 100 else 0;
The if that doesn't repeat is "if(t>=loop) t=t-loop;" The weird part is the second if will always execute.
Posts Index
Read Thread
Reply
Like
Current Message Thread:
If statement only executes once - Expression problem
by Jeo Greko on Jul 10, 2012 at 5:47:19 pm
Re: If statement only executes once - Expression problem
by Walter Soyka on Jul 10, 2012 at 7:29:58 pm
Re: If statement only executes once - Expression problem
by Jeo Greko on Jul 10, 2012 at 7:42:09 pm
Re: If statement only executes once - Expression problem
by Walter Soyka on Jul 10, 2012 at 8:00:02 pm
Re: If statement only executes once - Expression problem
by Walter Soyka on Jul 10, 2012 at 8:05:27 pm
Re: If statement only executes once - Expression problem
by Jeo Greko on Jul 10, 2012 at 8:21:20 pm
Re: If statement only executes once - Expression problem
by Walter Soyka on Jul 10, 2012 at 9:09:02 pm
LOGIN TO REPLY
FORUMS
•
TUTORIALS
•
FEATURES
•
VIDEOS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
© 2013
CreativeCOW.net
All rights are reserved. -
Privacy Policy
[
Top
]