Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SET and LET Difference

Example:

     Set vVar=2+3; //vVar has the expression 2+3 as value we have to compute it using $(vVar) which returns 5

     Let vVar=2+3;//vVar has the computed value 5

I wanted to know that if we are assigning value to SET as '2+3' and when we want to evaluate that value further then we can use it as $(vVar) and get

the value as  '5'  or is it correct that we can't use SET variable value that is '2+3' and to get calculate as '5' and further use it , and it will remain as '2+3'

and as LET directly gives us the value  of '2+3' as 5 but then we are using $(vVar) to get it's value.....

Is it the correct what I understood.....

1 Reply
Not applicable
Author

Hi Reshma,

Its Absolutely right.