Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Not applicable

Why can't i use IF in Load Script

Can someone please tell me where my fault is?

Thanks

Unbenannt.PNG

3 Replies
Highlighted
oknotsen
Honored Contributor III

Re: Why can't i use IF in Load Script

Can you show us the rest of the code?

You can use IF statements in load scripts, just not in random locations.

May you live in interesting times!
pradeept
Valued Contributor II

Re: Why can't i use IF in Load Script

it seems you are using "IF" condition out side the Load Statement; If so try like this..

IF (vBegin<>'MO') Then

  Let vCounter=vCounter+1

EndIF;

hirishv7
Honored Contributor

Re: Why can't i use IF in Load Script

Hi,


What you are defining in your vCounter!