Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QLIKWORLD LIVE! MAY 16 - 19TH, EARLY BIRD DISCOUNTS! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SET and LET

Whats the difference? When should I use SET, and when should i use LET?

Thanks in advance,

Rhys Bradbury

1 Solution

Accepted Solutions
diegofcaivano
Partner
Partner

Those keywords determine how code in the script is interpreted after the equals sign, when defining variables.

SET will literally assign the written code as a string, while LET will evaluate it as a expression before placing it into the variable. If used correctly, then you can build more advanced stuff like defining functions inside a variable, etc.

Please take a look at QlikView's Help and other already answered posts about this topic:

http://community.qlik.com/message/193695#193695

Regards.

View solution in original post

1 Reply
diegofcaivano
Partner
Partner

Those keywords determine how code in the script is interpreted after the equals sign, when defining variables.

SET will literally assign the written code as a string, while LET will evaluate it as a expression before placing it into the variable. If used correctly, then you can build more advanced stuff like defining functions inside a variable, etc.

Please take a look at QlikView's Help and other already answered posts about this topic:

http://community.qlik.com/message/193695#193695

Regards.