SET is taken literally and what is on the right of the equals is written into the variable. So writing:
SET vMyVariable = 5*2;
Would result in vMyVariable containing "5*2".
LET is used when you wish QlikView to equate what is on the right of the equals and write the answer into the variable. So writing:
LET vMyVariable = 5*2;
Would result in vMyVariable containing "10".
Simples!
Let is not defining a variable
ReplyDelete