Dynamic Variable/Function?
Posted: 12 Sep 2019, 17:17
I am using three variables. Var1 is the baseline which I modify, 2 and 3 are always simply Var1+x. Two questions
1)
What is the simplest way to write
2)
Can we further simplify and define n2 as always n1+1, without writing the whole formula out every time it is called?
I.e. at the top of the script,
" if (n2 is found, find n1 and use n1+1) "
Thank you
1)
What is the simplest way to write
Code: Select all
n1:=1
n2:=(n1+1)
n3:=(n1+2)
Can we further simplify and define n2 as always n1+1, without writing the whole formula out every time it is called?
I.e. at the top of the script,
" if (n2 is found, find n1 and use n1+1) "
Thank you