Qlik Community

Qlik Sense App Development

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

Partner
Partner

IF THEN condition not enabling the entire code to run

Can you please let us know if there is anything wrong in this below code?

When i am executing the script, it is getting completed after this part.. There are multiple other tabs of script present, but those are not executing further. Please help

Let vYear= year(now());

if num(year(now()))=2019 THEN
Set MinCount = $(vYear)&'005';
Set MinOSTCount = $(vYear)&'05';

Else
//Incremental part
Set MinCount = $(vYear)&'001';
Set MinOSTCount = $(vYear)&'01'

2 Solutions

Accepted Solutions
Partner
Partner

Re: IF THEN condition not enabling the entire code to run

is there a

endif

in original script?

Regards

View solution in original post

Highlighted
Partner
Partner

Re: IF THEN condition not enabling the entire code to run

You're missing ; in the last line.

Also I don't see END IF

View solution in original post

2 Replies
Partner
Partner

Re: IF THEN condition not enabling the entire code to run

is there a

endif

in original script?

Regards

View solution in original post

Highlighted
Partner
Partner

Re: IF THEN condition not enabling the entire code to run

You're missing ; in the last line.

Also I don't see END IF

View solution in original post