Is possible to use formulas question with if and for statements if so anyone can provide me a simple example of the syntax
Basically I need to get a variable and based on the value choose the action to perform.
Hello Wendy,
To set a new variable equal to a string, just add a line as follows:
a=1; b=2; x=(a>b)?0:1; newvariable=pick(x,"String 1","String 2");
Hello Jorge,
On the contrary, it is very easy to do.
Define a random variable equal to 0 or 1:
a = {0,1};
Define global variables as follows:
Arti = pick(a,"Hip","Knee"); A = [1,2,3,4,5]; B = [10,20,30,40,50]; X = pick(a,A,B);