Positioning of expression stops recalculation

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

#1 已发布: 2020/11/24 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 已发布: 2020/11/24 20:53:03
churichuro

churichuro

29个赞,共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 已发布: 2020/11/24 23:08:17
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Better work algo style !

Area.PNG
  • 有新帖
  • 无新帖