Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Variables

Hi All

I am working on LET and SET statements.

in the following example, what would be the value of  'z' variable.


Set x=3+4;    /

Let y=$(x)*3

z=$(y)


z will be  3+4*3 = 15 

or

(3+4) *3 = 21


Thanks.


Regards

2 Replies
sunny_talwar

Showing up as 15 when I run a sample with this code

Set x=3+4;

Let y=$(x)*3;

z=$(y)

eduardo_dimperio
Specialist II
Specialist II

Hi

Set x=3+4;   

Let y=$(x)*3;

z=$(y);


z =15


LET x=3+4;   

Let y=$(x)*3;

z=$(y);


z= 21


Use Set to literal interpretation, and Let for equations, as the case.