07-22-2005 11:07 AM
07-22-2005 11:35 AM
I think that your formula is very close. If I got your explanation correct, this is the formula to use:
if (P1>1) {
if (P2>=P1) {
X=P2;
}
else
X=0;
}
You need to have the to ifs be explicit or need to
Or you could go the old fashioned route and do it this way:
P1>1 ? ((P2>=P1) ? (X=P2): (X=0)): (0);
But I would stick with the C implementation if you are comfortable with it ![]()
Hope that this helps,
Bob
07-22-2005 11:51 AM
07-22-2005 12:03 PM
07-22-2005 12:29 PM
Depending on how the FOR loop is set up (what is being passed in, what it is doing) the # connected to the N terminal tells it how many times to loop. If an array is connected to the input side (left) of the loop and it is set to autoindex (signified by a little square connector with white space in the center), it will loop either the number connect to the N terminal -OR- the number of elements in the, which ever is smaller.
P.M.
