Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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!