I would like to have certain conditions set a value for Variables and then use those variables to determine an aggregate value. In this case I tried to use another Variable to define the aggregated value. For instance;
int Variable0=0;
int Variable1=0;
int Variable2=0;
int Variable3=0;
int Variable4=0;
int Variable5=0;
int Variable9=0;
{
// Condition set 1
if (CCI(14)[0] > 0)
{
Variable0 = 25;
}
// Condition set 2
if (CCI(30)[0] > 0)
{
Variable1 = 25;
}
// Condition set 3
if (CCI(40)[0] > 0)
{
Variable2 = 25;
}
// Condition set 4
if (CCI(14)[0] < 0)
{
Variable3 = 25;
}
// Condition set 5
if (CCI(30)[0] < 0)
{
Variable4 = 25;
}
// Condition set 6
if (CCI(40)[0] < 0)
{
Variable5 = 25;
(so far so good)
I would now like to set Variable9==(Variable0 + Variable1)
Variable9==(Variable0+Variable1)
I tried several variations of what you see in Red above.
This is where I am having a problem. I keep getting script errors
but cant decipher how to write the code. Any help would be appreciated.
Thanks.
Comment