Positioning of expression stops recalculation

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

#1 Pubblicato: 24/11/2020 19:49:50
Mark Berelowitz

Mark Berelowitz

0 apprezzamenti in 1 post.

Gruppo: User

File non trovato.File non trovato.File non trovato.

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 Pubblicato: 24/11/2020 20:53:03
churichuro

churichuro

29 apprezzamenti in 79 post.

Gruppo: 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 Pubblicato: 24/11/2020 23:08:17
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Better work algo style !

Area.PNG
  • Nuovi post
  • Nessun nuovo post