Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 10:38:43 +0000



Post From: Code help, using a string instead of a constant

[2023-08-27 22:39:46]
j4ytr4der_ - Posts: 938
One question as this doesn't make sense to me. You made a small change to the final return of the value to a subgraph, that code is now:

sc.Subgraph[InputIndex][BarIndex] = (float)FormulaOutput * (InputIndex + 1); // Return the formula result in a subgraph

You added
* (InputIndex + 1)

What is the significance of that? Seems weird to me to multiply whatever the final result is, by the number of the current input plus 1.