Positioning of expression stops recalculation

Positioning of expression stops recalculation - It appears that positioning the expression before defining variables affects output - Сообщения

#1 Опубликовано: 24.11.2020 19:49:50
Mark Berelowitz

Mark Berelowitz

0 сообщений из 1 понравились пользователям.

Группа: User

Файл не найден.Файл не найден.Файл не найден.

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 Опубликовано: 24.11.2020 20:53:03
churichuro

churichuro

28 сообщений из 79 понравились пользователям.

Группа: 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 Опубликовано: 24.11.2020 23:08:17
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Better work algo style !

Area.PNG
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений