Positioning of expression stops recalculation

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

#1 Objavljeno: 24. 11. 2020. 19:49:50
Mark Berelowitz

Mark Berelowitz

0 svidjanja u 1 postova.

Grupa: User

Fajl nije pronađen.Fajl nije pronađen.Fajl nije pronađen.

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

churichuro

29 svidjanja u 79 postova.

Grupa: 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 Objavljeno: 24. 11. 2020. 23:08:17
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Better work algo style !

Area.PNG
  • Novi postovi
  • Nema novih postova