Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, can you please let me know if there will be any difference in outcome for the below expressions?
1> SET vPath = .\includes\include.txt;
2> LET vPath = '.\includes\include.txt';
3> LET vPath = .\includes\include.txt;
Yes, no 1 and no 2 will be the same. I'm not sure if No 3 will work at all. Using LET the variable will be evaluated when running the script and I don't think that a string without quotes will run without errors.
This is easier to explain using a function like Today().
Let var =Today() will set the variable to the date when the script is ran.
Set var = today() will set the variable to today() and will therefore be calculated when the variable is called. So if you reload the app today and call it in an expression tomorrow then tomorrow's date will be presented.
Yes, no 1 and no 2 will be the same. I'm not sure if No 3 will work at all. Using LET the variable will be evaluated when running the script and I don't think that a string without quotes will run without errors.
This is easier to explain using a function like Today().
Let var =Today() will set the variable to the date when the script is ran.
Set var = today() will set the variable to today() and will therefore be calculated when the variable is called. So if you reload the app today and call it in an expression tomorrow then tomorrow's date will be presented.