Loop error in thinkscript?

J

Jompatan

New member
The first case should enter as true and add B = 1, then the rest of the cases should enter as false and add B = 10. But the graph only shows B = 10.

I DO NOT GET IT.

declare lower;
def A = 1 + A [1];
def b;
if A == 1 {
b = 1;
} else {
b = 10;
}
plot TotalB = b;
plot TotalA = A;
 
Last edited:
Thread starter Similar threads Forum Replies Date
E Plotting multiple lines with a loop Questions 0
T While Loop like in Java or C Questions 0
D Expected Class Error Questions 2
J Spread - Formula error Questions 0
T Runtime Error: thinkscript.runtime.TooComplexException Questions 6

Similar threads

Top