Positioning of expression stops recalculation

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

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

Mark Berelowitz

0 me gusta en 1 mensajes.

Grupo: User

Archivo no encontrado.Archivo no encontrado.Archivo no encontrado.

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

churichuro

29 me gusta en 79 mensajes.

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Better work algo style !

Area.PNG
  • Nuevos mensajes
  • Sin mensajes nuevos