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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Upali_Wijearatne
Contributor III
Contributor III

If condition I script

Dear Friends

 

I have written the following condition in my data load srcipt

 

let pflag='Y';
if pflag ='Y'
SET vPath = "D:\My Accounts\LANKA_TYRE\QVD\";

else
set vLpath=Z:\QV\Data\;
ENDIF

 

But It does not with error message below

Upali_Wijearatne_0-1615195690662.png

Kindly help me to correct my error

1 Solution

Accepted Solutions
2 Replies
Taoufiq_Zarra

@Upali_Wijearatne  Maye be :

let pflag='Y';

if '$(pflag)' ='Y' then 

SET vPath = "D:\My Accounts\LANKA_TYRE\QVD\";

else
set vLpath=Z:\QV\Data\;

ENDIF

output:

 

Taoufiq_Zarra_0-1615195912333.png

 

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Upali_Wijearatne
Contributor III
Contributor III
Author

Thanks