Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to compare time in if condition in loading script.

Hello, Friends

I want to implement a new function in my loading script.

If now()>'12:30:00 pm' Then

     ExitScript();

Else

     Load

     ......

     From....

End If

But I always get problems with time compare in if condition.

How can I make it?

Thank you.

Larry

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Now() returns a Timestamp including the date.

Try something like

IF Frac(Now()) > Maketime(12,30,0) THEN

View solution in original post

2 Replies
swuehl
MVP
MVP

Now() returns a Timestamp including the date.

Try something like

IF Frac(Now()) > Maketime(12,30,0) THEN

Anonymous
Not applicable
Author

Thank you so much for helping!