Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

lixingkai
New Contributor III

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
MVP
MVP

Re: How to compare time in if condition in loading script.

Now() returns a Timestamp including the date.

Try something like

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

2 Replies
MVP
MVP

Re: How to compare time in if condition in loading script.

Now() returns a Timestamp including the date.

Try something like

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

lixingkai
New Contributor III

Re: How to compare time in if condition in loading script.

Thank you so much for helping!