Millisecond Forums

calculation sequence

https://forums.millisecond.com/Topic28079.aspx

By nakayama - 12/12/2019

Hi, Dave
i wish to ask a general question:
How are values calculated under <expressions>  ?
If I have multiple calculations under  <expressions> like:

<expressions>
/A=expressions.a 
/B=expressions.a+values.c
</expressions>
Are these different from 
<expressions>
/B=expressions.a+values.c
/A=expressions.a 
</expressions>
Does the sequence matter?

Thank u
Best,
By Dave - 12/12/2019

nakayama - 12/13/2019
Hi, Dave
i wish to ask a general question:
How are values calculated under <expressions>  ?
If I have multiple calculations under  <expressions> like:

<expressions>
/A=expressions.a 
/B=expressions.a+values.c
</expressions>
Are these different from 
<expressions>
/B=expressions.a+values.c
/A=expressions.a 
</expressions>
Does the sequence matter?

Thank u
Best,

The sequence here does not matter for all I know.

Whenever expressions.b is queried, it will evaluate expressions.a, add values.c, and return the result. Whether A  listed before or after B in the <expressions.> element should not affect the result.
By nakayama - 12/13/2019

Dave - 12/13/2019
nakayama - 12/13/2019
Hi, Dave
i wish to ask a general question:
How are values calculated under <expressions>  ?
If I have multiple calculations under  <expressions> like:

<expressions>
/A=expressions.a 
/B=expressions.a+values.c
</expressions>
Are these different from 
<expressions>
/B=expressions.a+values.c
/A=expressions.a 
</expressions>
Does the sequence matter?

Thank u
Best,

The sequence here does not matter for all I know.

Whenever expressions.b is queried, it will evaluate expressions.a, add values.c, and return the result. Whether A  listed before or after B in the <expressions.> element should not affect the result.

Thank you for your confirmation;)