# If statement using Time?

**URL:** <https://forum.kirupa.com/t/if-statement-using-time/265425>\
**Category:** Uncategorized\
**Created:** [July 8, 2008, 7:12pm UTC](https://forum.kirupa.com/t/if-statement-using-time/265425 "2008-07-08T19:12:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bovine](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bovine](https://forum.kirupa.com/u/bovine)\
**Post date:** [July 8, 2008, 7:12pm UTC](https://forum.kirupa.com/t/if-statement-using-time/265425/1 "2008-07-08T19:12:40Z")

</div>

just realized that this isn’t gonna work since Time keeps running and i need it to start at the end of the video.

How can i do an if statement that is based on Time that will not start at 0, but that the last second of a video but not get reset when the time goes back to 0 since the video will then finish?

So video starts at 0 goes to 10 seconds, i want my function to start at 10 second and completely run and not get interrupted when the time goes back to 0.???

thoughts?
