on 08-08-2013 6:39 PM
I have two data collection parameters I want to compare. In each data collection parameter I want to scan in an alpha-numeric value, and I'd like to use the formula to determine if those two values are the same.
Something like this...
a=PARAM1;
b=PARAM2;
if (a=b) {c=0};
else {c=1};
exit(c);
Is it possible to use the data collection formula functionality to compare two text fields or will it only compare two numeric values? Is it valid to use an if statement in data collection formula (the help only mentions mathematical equations)?
Hi Alli,
Sergiy is right. Formula scripts can handle only numeric values.
Best Regards,
Miguel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From my experience, it operates on numeric values only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Alli,
'If' statement should be allowed. I think you should be able to compare strings too using Java Script.
Please, update us on your results.
Br, Alex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.