I would like to do something that I learnt a long time ago in VB, but am struggling with JMP scripting language. I am new to JMP.
I would like to run a For loop in a formula but use a cell array.
For example, I know I can reference a column as follows: j = Column ("a");
If I then say j[4] = 77 + 2; I will get the value 79 in column “a”, row 4.
What, though, if I wanted to run a loop on Column "a", for example For(i=1,i<=20,i++, SOME FORMULA USING j[i]);
In the attachment I would like to use column-B Row [1] with column-C’s Rows 1 to 5. And then, column-B Row [6] with column-C’s Rows 6 to 10. My aim is to use the sequence in Column-A as an identifier, hence each time the sequence is of value 1 I hold this value for 5 subsequent uses of the formula where what goes into Column-D depends on the aritmetic performed on the contents of Columns B and C. (For example Column-D=Column-B-Value + Column-C-Value.) See the attachment to see in a picture what I mean.
Any help would be great and much appreciated.