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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Simple conditional question

Hi all,

I'm testing a conditional reload script and starting with very simple logic, but it's not working:

if 1=1

set variable='Yes';

end if

I get an error 'Script line error if 1=1'. Any ideas?

Thnx

2 Replies
Not applicable
Author

hi,

try this

let x=1;

if x=1 then

set variable='yes';

end if

thanks

Not applicable
Author

Thnx. Works. Seems like the 'Then' need to be on the same line as the 'if'.