Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
Champion III
Champion III

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
Champion III
Champion III

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!