Positioning of expression stops recalculation

Positioning of expression stops recalculation - It appears that positioning the expression before defining variables affects output - Messages

#1 Posted: 11/24/2020 7:49:50 PM
Mark Berelowitz

Mark Berelowitz

0 likes in 1 posts.

Group: User

File not found.File not found.File not found.

Hi,

In the first case, the variables are defined, and then the expression, then the variables are changed, but the result doesn't update with recalculate.
In the second case, the expression is defined before the variables. When changing the variables, the result updates.
Why does this happen?

Thanks

Regards

Mark
#2 Posted: 11/24/2020 8:53:03 PM
churichuro

churichuro

28 likes in 79 posts.

Group: User

in the first case you are defining the values and then an expression,
the expression is evaluated and no longer depends on the external variables ...

while in the second case you are defining a function without parameters,
so in this second case the value changes as you change the value of your variables.
#3 Posted: 11/24/2020 11:08:17 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Better work algo style !

Area.PNG
  • New Posts New Posts
  • No New Posts No New Posts