Hi!
I'm an experienced programmer, but I'm new to thinkScript. Sorry if I'm asking a repeating question, but I could not find the answer.
The following simple code:
gives me the error for "def br = B("X");" line:
How can I make it work?
I'm an experienced programmer, but I'm new to thinkScript. Sorry if I'm asking a repeating question, but I could not find the answer.
The following simple code:
Code:
script A {
input ap = "";
plot a = 0;
}
script B {
input bp = "";
def bar = A(bp);
plot b = 0;
}
def br = B("X");
def ar = A("X");
plot r = 0;
gives me the error for "def br = B("X");" line:
Incompatible parameter: "X" at 12:10
Expected double at 12:10
Incompatible parameter: "X" at 12:10
Expected double at 12:10
How can I make it work?
Last edited: