- Mar 22, 2010
- 42
- 1
let's say i have a math operation, it could be any math operation, like:
x = y
y = z + 5
z = (5 * t) - (3 + x / 2)
using math_counter entities and logic_relay entities, is there a way to have that operation performed on the target variable? i need to ensure the specified order of operations stays intact, so the "inside" values need to be evaluated first
for the last example, the math_counters would be arranged like this:
each arrow represents a SetValue/Add/Minus/Divide/Multiply input and the gen_X math_counters are used for the purpose of holding values, but i'm not sure how i would ensure they evaluate in the correct order. any ideas for a generic solution to this problem?
x = y
y = z + 5
z = (5 * t) - (3 + x / 2)
using math_counter entities and logic_relay entities, is there a way to have that operation performed on the target variable? i need to ensure the specified order of operations stays intact, so the "inside" values need to be evaluated first
for the last example, the math_counters would be arranged like this:
each arrow represents a SetValue/Add/Minus/Divide/Multiply input and the gen_X math_counters are used for the purpose of holding values, but i'm not sure how i would ensure they evaluate in the correct order. any ideas for a generic solution to this problem?